Hello Friends,
Is there any way to run a dxl script from batch file? And will it create any crash in the database?
I have a script which exports a specific view from a module to excel sheet, i am planning to automate this by triggering a batch file.
Any opinion on this pls.
thanks.
Ashok
AshokNandha - Tue Feb 28 08:58:32 EST 2012 |
|
Re: Running DXl via Commandline or from batch HVM0_Marc_LE_GOFF - Tue Feb 28 10:45:10 EST 2012
Hello,
You can use Doors in command line, and use the "-batch" option.
Example on Windows:
C:\Program Files\IBM\Rational\DOORS\9.2\bin\doors.exe" -user "My_Name" -password "My_Password" -batch "my_dxl_script_name.dxl"
Note that the name of your dxl script must include the path
If you want to start this job during the night, you can use on windows, start / control panel / planned task.
Regards,
Marc
|
|
Re: Running DXl via Commandline or from batch llandale - Tue Feb 28 15:41:16 EST 2012
The command line supports "-batch " option. Your batch DXL will need to know exactly which modules you want to open and export. "exactly" usually means the full path: \MyProject\MyFolder\MyModuleName.
Some of the GUI stuff does not load in batch mode. Don't think you can open a module visibly, and invisible modules don't allow you to load specific views normally. See here for a function that will load the view while the module is invisible:
[https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14776304�]
Don't think I've done it, but it also supports "-dxl " option which does load all the GUI stuff and that may help some of the code work. When you intend a "-dxl " script to run and then end DOORS I think it requires the "exit_" command at the end.
I see no reason why you cannot test your batch script from the DXL window, just keep in mind it may not work in Batch mode; without some tweaking.
-Louie
|
|
Re: Running DXl via Commandline or from batch Mathias Mamsch - Wed Feb 29 05:36:48 EST 2012 llandale - Tue Feb 28 15:41:16 EST 2012
The command line supports "-batch " option. Your batch DXL will need to know exactly which modules you want to open and export. "exactly" usually means the full path: \MyProject\MyFolder\MyModuleName.
Some of the GUI stuff does not load in batch mode. Don't think you can open a module visibly, and invisible modules don't allow you to load specific views normally. See here for a function that will load the view while the module is invisible:
[https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14776304�]
Don't think I've done it, but it also supports "-dxl " option which does load all the GUI stuff and that may help some of the code work. When you intend a "-dxl " script to run and then end DOORS I think it requires the "exit_" command at the end.
I see no reason why you cannot test your batch script from the DXL window, just keep in mind it may not work in Batch mode; without some tweaking.
-Louie
In case of other problems with batch mode you should consider using something like an interactive batch, i.e. starting DOORS with a GUI but automatically execute a script and end DOORS again.
See here for an example:
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14585984�
Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
|
Re: Running DXl via Commandline or from batch AshokNandha - Thu Mar 01 08:51:47 EST 2012 Mathias Mamsch - Wed Feb 29 05:36:48 EST 2012
In case of other problems with batch mode you should consider using something like an interactive batch, i.e. starting DOORS with a GUI but automatically execute a script and end DOORS again.
See here for an example:
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14585984�
Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
I am working on this. Thanks so much for all your suggestions.
~Ashok.
|
|
Re: Running DXl via Commandline or from batch ChidambaramL - Sat Apr 29 09:07:17 EDT 2017 llandale - Tue Feb 28 15:41:16 EST 2012
The command line supports "-batch " option. Your batch DXL will need to know exactly which modules you want to open and export. "exactly" usually means the full path: \MyProject\MyFolder\MyModuleName.
Some of the GUI stuff does not load in batch mode. Don't think you can open a module visibly, and invisible modules don't allow you to load specific views normally. See here for a function that will load the view while the module is invisible:
[https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14776304�]
Don't think I've done it, but it also supports "-dxl " option which does load all the GUI stuff and that may help some of the code work. When you intend a "-dxl " script to run and then end DOORS I think it requires the "exit_" command at the end.
I see no reason why you cannot test your batch script from the DXL window, just keep in mind it may not work in Batch mode; without some tweaking.
-Louie
Can we use the DB & DBE to create dialog boxes when running DXL in command line.
|
|
Re: Running DXl via Commandline or from batch Mathias Mamsch - Sat Apr 29 14:40:08 EDT 2017 ChidambaramL - Sat Apr 29 09:07:17 EDT 2017
Can we use the DB & DBE to create dialog boxes when running DXL in command line.
Yes you can, if you do not use batch mode but interactive mode. Search the forum for "interactive batch" The question would be, why you would want to do that? Regards, Mathias
|
|