Why does an RFT script launched via RQM not work properly in IE9?
Hello,
I have a simple RFT 8.3 script that has to insert data into a form on a webpage and click submit at the bottom. When running it locally on my machine everything works perfectly in IE9. When I add the script to RQM and run it through the adapter, however, it does not work. It does not seem to understand the setText() method for text fields and just freezes.
I have tried <object>.click() before <object>setText("text here") but it makes no difference. It registers the click, but not the text insert.
Is there any way around this?
Best regards,
Andrew
7 answers
The issue you are seeing could be un-related to RQM executing the RFT script..
I would suggest you to try invoking the RFT script through command line (instead of eclipse / MSVS GUI mode) and confirm that it works?
Here are the details on running RFT script in command line mode :
http://www.ibm.com/developerworks/rational/library/run-scripts-through-the-rational-functional-tester-command-line/
http://publib.boulder.ibm.com/infocenter/rfthelp/v8r3/topic/com.ibm.rational.test.ft.doc/topics/RobotJCommandLine.html
Best Regards, Sunil
Comments
Review the properties of your object, may be you have a property that require regular expression like id session, some link or name numeration. are you getting some specific error?
Comments
Hi,
if you want to make sure run ie as administrator, you can try run ie using java, something like this :
String commands [] = new String [] {
"CMD.EXE",
"/C",
"RUNAS /profile /savecred /user:"
+ "administrator"
+ " " + "ie.exe"
};
Runtime.getRuntime().exec(commands);
Hello Andrew,
I find that you have verified running from command line with IBM JRE (packaged with RFT) also?
If yes, there is nothing additional we could check on the same line.
One of the things you could try is verify that the properties of the object are varying (it is dynamic). In which case regEX can be used in their values as suggested by Rafael.
Meanwhile, you could try rule out the issue being specific to a script by trying a simple script.. eg. script { Launch google.com on IE9, click on search text box, enter text.}
Now, try this script in all modes (UI, cmd) and check if there is any difference?
If none help, I would suggest you log a PMR http://www.ibm.com/planetwide/us/
Best Regards, Sunil
Comments
showing 5 of 6
show 1 more comments
@andrew try opening RQM in Chrome (since your RFT script is for IE9). I have seen that if a browser instance is already open, RFT has some trouble running the script on it. (Just make sure that you can run it from RFT once)
Sorry, ya missed 1 more point.. Can you try starting the RFT adapter console
"Programs > IBM SDP > Adapter to Rational Quality Manager > Configure Adapter" with "Run as administrator"..
Coz, its the adapter which invokes the script on the RFT machine using the script supplied by RQM..
Do let me know your findings..
Best Regards
Sunil