I am trying to get compareModules from Kitchens Compare.inc file to co-operate however it does not want to behave. Has anyone used it to compare the contents of two modules?
I basically have two formal modules and with distinct identifiers. I select the portion of the module I want to compare by placing the content into two new modules which will both start at the same index. I then want to know what has been remove/added/updated between the two modules.
So far my only path of enlightenment has been the compareModules() method which basically tells me that I do not have the correct method signature
void compareModules(
Module modA,
Module modB,
bool inBothSame (Object, Object),
bool inBothMoved (Object, Object),
bool inBothDiffer(Object, Object),
bool notInB (Object, Object),
bool notInA (Object, Object))
{
...
...
}
I call the method like so:
Module origMod = edit(fullPathOrig);
Module newMod = edit(fullPathNew);
compareModules(origMod, newMod, true, true, true, true, true)
However this does not work. Anyone know why?
PatrickGuay - Thu Oct 27 13:24:16 EDT 2011 |
|
Re: Comparing modules in DOORS OurGuest - Thu Oct 27 13:48:58 EDT 2011
If you are concerned only about the "Main" Column, you might find using ms word a better solution in comparing.
However, I think if you search within this forum there is a compare tool listed.
|
|
Re: Comparing modules in DOORS PatrickGuay - Fri Oct 28 08:07:00 EDT 2011
I am actually writing an update script and the data must be treated in DOORS. I basically only want to update Object heading and Object Text however there are other attributes in the module which I do not want to compare.
|
|
Re: Comparing modules in DOORS PatrickGuay - Fri Oct 28 13:52:07 EDT 2011
Have any of the more experienced DXL user's used compare.inc in order to perform module comparison?
|
|
Re: Comparing modules in DOORS PatrickGuay - Fri Oct 28 14:16:49 EDT 2011
Anyone have a way of decrypting the .inc files located in lib/dxl/standard/ folder? This would really help me in extracting the code I need in order to re-structure it into a useful DXL stand alone script?
|
|
Re: Comparing modules in DOORS llandale - Sat Oct 29 15:05:05 EDT 2011 PatrickGuay - Fri Oct 28 14:16:49 EDT 2011
Anyone have a way of decrypting the .inc files located in lib/dxl/standard/ folder? This would really help me in extracting the code I need in order to re-structure it into a useful DXL stand alone script?
Yes there are a few clever folks who figured out how to decrypt; one was kind enough to send me one some years ago but it's now obsolete. No, its unlikely they will reveal themselves and it would be a disaster for one to post the solution as IBM would react with a new encryption algorithm; folks everywhere would have to re-encrypt their DXL with gnashing of teeth, and the other clever folks would <disallowed content detected>.
IBM claims "proprietary" on the encrypted files and that seems reasonable to me.
|
|
Re: Comparing modules in DOORS PatrickGuay - Mon Oct 31 07:27:02 EDT 2011
You are definitely right and I was so frustrated with a comparison algorithm for modules that I a posted an irrelevant comment. I guess i'll design from scratch
|
|
Re: Comparing modules in DOORS Zooby - Mon Jun 18 12:07:46 EDT 2012 PatrickGuay - Mon Oct 31 07:27:02 EDT 2011
You are definitely right and I was so frustrated with a comparison algorithm for modules that I a posted an irrelevant comment. I guess i'll design from scratch
Hi, I was just wondering if you ever did come up with a comparison script for modules. Did you succeed? I am also trying to find or make a comparison script for modules.
|
|
Re: Comparing modules in DOORS SystemAdmin - Mon Jun 18 17:49:19 EDT 2012 Zooby - Mon Jun 18 12:07:46 EDT 2012
Hi, I was just wondering if you ever did come up with a comparison script for modules. Did you succeed? I am also trying to find or make a comparison script for modules.
Before going down the DXL route - have you explored whether the built-in "Compare Modules" feature will do what you want. This feature is located in the Module menu under the Tools menu item.
Paul Miller
Melbourne, Australia
|
|
Re: Comparing modules in DOORS Zooby - Tue Jun 19 08:01:33 EDT 2012 SystemAdmin - Mon Jun 18 17:49:19 EDT 2012
Before going down the DXL route - have you explored whether the built-in "Compare Modules" feature will do what you want. This feature is located in the Module menu under the Tools menu item.
Paul Miller
Melbourne, Australia
The compare tool feature does mainly do what I want except it creates links between the modules, which I definitely do not want. I, however, have found a DXL layout script that works (it compares all attributes, not just object text and header); I just need to find a way to filter out all the blank objects within the created column, so I see only the objects that have the stated changes within the created "change" column (do you know how to do this? Using a filter of not "" doesn't work). I'm going to attach it just for anyone else who wants to look at it; it's in German but sticking it in Google Translate does the trick very well.
Attachments
attachment_14845648_German_Compare_DXL.txt
|
|
Re: Comparing modules in DOORS SystemAdmin - Tue Jun 19 08:30:40 EDT 2012 Zooby - Tue Jun 19 08:01:33 EDT 2012
The compare tool feature does mainly do what I want except it creates links between the modules, which I definitely do not want. I, however, have found a DXL layout script that works (it compares all attributes, not just object text and header); I just need to find a way to filter out all the blank objects within the created column, so I see only the objects that have the stated changes within the created "change" column (do you know how to do this? Using a filter of not "" doesn't work). I'm going to attach it just for anyone else who wants to look at it; it's in German but sticking it in Google Translate does the trick very well.
Hello Zooby,
you can filter for not empty columns by using the regular expression "." (meaning: column contains at least one character).
By the way: if you negate this filter, you can show all empty columns.
HTH,
Mike
|
|
Re: Comparing modules in DOORS Zooby - Tue Jun 19 11:58:10 EDT 2012 SystemAdmin - Tue Jun 19 08:30:40 EDT 2012
Hello Zooby,
you can filter for not empty columns by using the regular expression "." (meaning: column contains at least one character).
By the way: if you negate this filter, you can show all empty columns.
HTH,
Mike
Thanks, it worked.
I also want to mention I found another comparison routine that works just as well, but has better object deletion/addition detection than the first one I supplied. It creates an rtf file and doesn't show in the module itself however. I have attached it for anyone else that comes looking for a compare script.
Attachments
attachment_14845839_ParaCompareVersions.dxl
|
|
Re: Comparing modules in DOORS G_S_Edwards - Fri Mar 04 13:06:25 EST 2016 SystemAdmin - Tue Jun 19 08:30:40 EDT 2012
Hello Zooby,
you can filter for not empty columns by using the regular expression "." (meaning: column contains at least one character).
By the way: if you negate this filter, you can show all empty columns.
HTH,
Mike
Mike,
Is there a reg expression to search for an empty string... or is the advanced filter option the only method to negate the filter?
Regards,
-Graham
|
|