RQM cannot invoke "cmd.exe" configured application in RFT, while running the script
RQM cannot invoke "cmd.exe" configured application in RFT, while running the script?
RQM v4.0.1 and higher
RFT v8.2.1 and higher
An RFT script with the actions as below when executed from RFT eclipse UI, command line, RQM has the behavior given below..
script content...
startApp("cmd_prmt");
sleep(5);
// Window: cmd.exe: Administrator: C:\windows\system32\cmd.exe
administratorCWindowsSystem32C().click();
administratorCWindowsSystem32C().inputKeys("cd /{ENTER}");
administratorCWindowsSystem32C().inputKeys("cd Pro{TAB}");
administratorCWindowsSystem32C().inputKeys("{ENTER}");
administratorCWindowsSystem32C().inputKeys("dir{ENTER}");
administratorCWindowsSystem32C().inputKeys("exit{ENTER}");
behavior...
eclipse UI - works!
command line - works!
RQM UI - does not work {invokes script, fails to start application!! and hence fails}
command : (same as in RFT adapter console, works when invoked directly on RFT adapter machine)
"C:\IBM\RFT\jdk\jre\bin\java.exe" -Drqm.mode=true -Drqm.task="C:\Users\ADMINI~1\AppData\Local\Temp\RQMRFTTask3040109936879455416.xml" -jar "C:\IBM\RFT\FunctionalTester\bin\rational_ft.jar" -datastore "C:\RFTwork\TProject1" -rt.log_format xml -iterationcount -1 -rt.bring_up_logviewer false -execmode rqm -playback cmdPrmt
Why is the "cmd.exe" invoke failing in RQM playback? issue not observed for other applications eg: calc.exe, browser, classicJava..
Accepted answer
There is a technote addressing this issue.
http://www-01.ibm.com/support/docview.wss?uid=swg21585220 -Running an RFT Script From RQM results in the inability to open a command prompt window .
Thanks,
Deepa
http://www-01.ibm.com/support/docview.wss?uid=swg21585220 -Running an RFT Script From RQM results in the inability to open a command prompt window .
Thanks,
Deepa
Comments
2 other answers
Is there any error message on the console or log?
Comments
Hi Sunil,
This seems to be an issue with the RFT script. Looks like you may have to copy the referenced resources to the RFT customization folder. Normally this can be found at C:\ProgramData\IBM\RFT\customization folder however please confirm with RFT Team regarding this.
Thanks,
Deepa
This seems to be an issue with the RFT script. Looks like you may have to copy the referenced resources to the RFT customization folder. Normally this can be found at C:\ProgramData\IBM\RFT\customization folder however please confirm with RFT Team regarding this.
Thanks,
Deepa