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
![]()
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
When trying to insert a test object using IE9 the whole application freezes! I can't even add the search box for Google.
When I add it using Chrome and run, everything is fine. Unfortunately the identified objects are not recognised by IE9 so the script always fails, even after toying with the object weights. The annoying thing with Chrome is that the plugin for RFT always asks me to authorise Java for every single page. It's irritating.
I can't add Firefox as a browser because RFT won't accept the folder because "The [C:\Program Files (x86)\Mozilla Firefox] file is not the specified directory for an installed browser."
Is there some sort of configuration that I'm missing? I am finding the tool impossible to use and not worthwhile.
I am using Windows 7 64-bit.
Regards,
Andrew
Andrew, thank you for trying the suggestions.
Ya its awful at times, but I am sure we will be able to evade the behavior.
Could you please log a PMR (a service request) so that a TSE can assist you on this issue from RFT perspective?
(Please use the Open Service Request) option in the web page : http://www.ibm.com/planetwide/us/
Best Regards, Sunil
I managed to record the script for Google in IE9. The objects get added to the object map when I record the script (it doesn't work when I just want to add one using the drag feature).
When I play the script from RFT it works. When I run it via command line it doesn't. This is what it looks like:
startApp("Google");
text_search().setText("Test");
button_submitbtnG().click();
The setText() doesn't work.
I will try to get into contact with IBM.
Regards,
Andrew
When I launch the script in CMD that has been run with admin privileges it works!
My question now becomes, how do I ensure that the script gets run with administrative privileges when it is invoked via the RQM adapter'
Regards,
Andrew
It's not about the IE9 session being run as admin, it's about the CMD session running launching the test being run as admin. I don't know how to ensure that the script gets invoked as admin via the RQM Test Script.
Regards,
Andrew
It works when the adapter is run with admin privileges! Problem solved.
Regards,
Andrew
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)
Comments Hello Ajay,
I am running the script from Firefox, but I have also tried Chrome as you suggested. Unfortunately it makes no difference.
Regards,
Andrew
|
![]()
Nothing specific to mention in script. Can you try using IE session (fresh, close all existing, restart) started with "Run as Administrator".. ? check if the issue persists?
Best Regards, Sunil
|
![]()
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
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.