It's all about the answers!

Ask a question

Not able to run any RFT scripts through RQM


roshni menon (311) | asked Dec 17 '13, 6:30 a.m.
I'm using RFT v8.3 and I integrated all my RFT scripts with RQM,configuring the adapter and all..                                       
But when I start executing the scripts from RQM, the RFT scripts commands are executing as I can see it from the playback window but nothing is getting affected in the application.  
                     
I can't even login as setText() is not working. No values are getting entered and the application is getting slow and not responding sometimes. I'm using IE 9 for execution as that is recommended.  
                                                         
Please help me to resolve this issue as its on high priority and I'm a  
fresher to RFT automation and pls help me in viewing the execution log of the script as that is also missing

Accepted answer


permanent link
Ara Masrof (3.2k15) | answered Dec 17 '13, 9:13 a.m.
JAZZ DEVELOPER
Roshni,
On the system hosting RFT (and the adapter) you can increase the adapter logging in order to capture debug level information. This will help in diagnosing the issue. 
To set up increased logging please perform the following steps

On the system hosting RFT, locate the  configureadapter.bat and look for the following line:


 start "" %RFT_ARG_JRE% -classpath  %RFT_INSTALL_DIR%\rational_ft.jar com.rational.test.ft.RQMAdapterConfigure %*      

and modify it to this                      
                                                                                                           
 start "" %RFT_ARG_JRE% -Dlog4j.configuration=file:./log4j.properties -classpath %RFT_INSTALL_DIR%\rational_ft.jar com.rational.test.ft.RQMAdapterConfigure %*           


Create a new  file called  log4j.properties file in same folder

Contents of log4j.properties should look like this:

log4j.rootLogger=info, stdout, FA

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%m%n

log4j.appender.FA=org.apache.log4j.RollingFileAppender
log4j.appender.FA.File=RftAdapter.log
log4j.appender.FA.MaxFileSize=10MB
log4j.appender.FA.MaxBackupIndex=5

log4j.appender.FA.layout=org.apache.log4j.PatternLayout
log4j.appender.FA.layout.ConversionPattern=%d{ABSOLUTE} [%t] %5p %-50.50c - %m%n
log4j.logger.com.ibm.rqm.adapter.library=DEBUG
log4j.logger.com.ibm.rqm.integration.client.clientlib=DEBUG

# Uncomment following lines to get trace info from
# org.apache.commons.httpclient code
#log4j.logger.httpclient.wire.header=DEBUG
#log4j.logger.org.apache.commons.httpclient=DEBUG

once saved, start the adapter by using "configureadapter.bat" from the commandline. (Please make sure, you start the adapter using this option only, otherwise we will not get the logging info.)   
From the configure adapter window, select the QM project you are trying to connect to (If it was already selected, please selected a different project then re-select the it; essentially, I want to be sure it 're-reads' the project)
Start the adapter 
The new (robust) log should be created in the same folder. 
Try running your RFT test again (From RQM) and see if there are any errors in the log (if you see an error, paste the contents of error in this thread)

Ara



roshni menon selected this answer as the correct answer

Comments
roshni menon commented Dec 18 '13, 2:49 a.m.

Hi Ara..

Thanks for the reply.. I did what you told but still the scripts are not running through RQM

And about the log4j file, can you provide little more information on it as no logs are getting generated as of now

Roshni

Thanks

5 other answers



permanent link
Ara Masrof (3.2k15) | answered Dec 18 '13, 8:42 a.m.
JAZZ DEVELOPER
  Roshni
The steps in my original comment were not meant to solve the issue; they were meant to enable additional debugging information to analyze the issue and potentially find the root cause
First you need to modify the   configureadapter.bat as noted above (This would be on the RFT system)
Then in the same folder you would need to create a new file (use  Notepate) then rename it to 'log4j.properties' (be sure the extension is .properties and not .txt)
Paste in the the following contents into the file

og4j.rootLogger=info, stdout, FA

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%m%n

log4j.appender.FA=org.apache.log4j.RollingFileAppender
log4j.appender.FA.File=RftAdapter.log
log4j.appender.FA.MaxFileSize=10MB
log4j.appender.FA.MaxBackupIndex=5

log4j.appender.FA.layout=org.apache.log4j.PatternLayout
log4j.appender.FA.layout.ConversionPattern=%d{ABSOLUTE} [%t] %5p %-50.50c - %m%n
log4j.logger.com.ibm.rqm.adapter.library=DEBUG
log4j.logger.com.ibm.rqm.integration.client.clientlib=DEBUG

# Uncomment following lines to get trace info from
# org.apache.commons.httpclient code
#log4j.logger.httpclient.wire.header=DEBUG
#log4j.logger.org.apache.commons.httpclient=DEBUG

Once saved, start the adapter (as noted in my original post) and there should be an <>.log file created in that same folder. This file should be analyzed for any errors during start up or execution 

The instructions can also be found here

Comments
roshni menon commented Dec 18 '13, 12:29 p.m.

Hi Ara,
I've done this but still there is no such error displaying in it. It is showing as done
All the input commands in the scripts are not working still. I wonder if there are any modifications done in the RFT or RQM properties for running the scripts in RQM and also any environment variables to be set for execution of RFT scripts through RQM.
I'm using RFT 8.3 and RQM  2.0.1.1 iFix 2 and jre is 1.7 u45. Hope these configurations doesn't have a problem for execution or should I install anything else for running the scripts. Please help me for this as I need to resolve this issue asap
 


permanent link
Ara Masrof (3.2k15) | answered Dec 18 '13, 1:27 p.m.
JAZZ DEVELOPER
If there are no errors in the adapter log, then that would indicate that from an RQM perspective, it has received the request to execute the script and sent the request to RFT (with the associated run parameters).

At this point RQM is waiting for the script to complete; so it sounds as if the issue may be specific to RFT rather than RQM

One this to note:

RQM 2.0.x is a fairly old version of the tool; it never explicitly support version 8.3 of RFT

Supported versions are 8.0, 8.0.0.x, 8.1, 8.1.0.x, 8.2

A complete list of hardware/software support for 2.x can be found here

http://www-01.ibm.com/support/docview.wss?uid=swg27015932#MIG

I have never personally run RFT 8.3 with Version 2.x of RQM, so I don’t know if this is the basis of your issue, but based on the support matrix it most likely was never tested

There may so some additional debugging you can set on the RFT side to narrow down the issue. You may want to ask the question on the Developer Works forum specific to RFT

Here is the link

https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000322


You may also want to open a PMR with the support team if this is critical issue

Thanks


Ara


permanent link
Vidya Malkarnekar (1.0k15) | answered Dec 18 '13, 2:40 p.m.
JAZZ DEVELOPER
 Ara is right. RFT development had confirmed previously that you need at least RQM 3.0.1.5 to integrate with RFT 8.3 version. 

permanent link
roshni menon (311) | answered Dec 19 '13, 1:03 a.m.
Hi Ara and Vidya,

I really appreciate your valuable replies. But I've already raised a PMR on this issue and the reply I got from there was really surprising.
They replied as:
"As per documentation, RFT 8.3 can be integrated with RQM 2.0.1.1. "
Now I don't have any idea what went wrong
Is there any other I can try on this?
Please help me as I'm really stucked up on this :(



Comments
Ara Masrof commented Dec 19 '13, 11:05 a.m.
JAZZ DEVELOPER

Roshni,

The supported integration's for RQM 2.0.x would be located here 
If you can send me the PMR number  I can check with the support engineer as well.

My recommendation would be to download a trial copy of RQM 4.x and do some testing with RFT and see if you encounter the same issue.

Ara


roshni menon commented Dec 19 '13, 12:43 p.m.

Service request number 25278 999 744
This is my PMR number. Can you please check and confirm me about it.
Thanks in advance Ara


permanent link
Ken Brenner (1) | answered Jan 21 '14, 10:12 a.m.
 Hi.  I'm having a similar issue.  CLM/RQM v4.0.3, RFT 8.3.  I can run the adapter, add the RFT script as a test script in RQM, and associate that script with a Test Case.  However, when I run the Test Case and associated Test Script (RFT), the RFT script starts, but never finishes.  This happens with IE9 and Mozilla Firefox 10.0.2.  However, it does work with Chrome (v 32).
I also agree with earlier comments, I would not try to run RFT 8.3 with RQM 2.  I was able to get RQM 2.0.1 to work with RFT 7.x and 8.0.

Your answer


Register or to post 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.