Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

IBM RFT Adapter Integrate RQM

 
Good afternoon, I am integrating RFT 8.6.0.7 to be run from my local machine by Rational Quality Manager (RQM). I was able to start the connection through the adapter normally, and I import the testcase that will be executed by the web. But the execution returns me the following message: ERROR: Could not run the script. And by log4J, type the following errors:

java.lang.UnsupportedClassVersionError: sicredi/testcases/HelloWorld : Unsupported major.minor version 51.0

java.lang.NullPointerException at java.io.File.<init>(Unknown Source) at com.ibm.rqm.adapter.rft.RFTLogUtilities.zipLogFiles(RFTLogUtilities.java:236) at com.ibm.rqm.adapter.rft.RFTExecutionRequest.zipLog(RFTExecutionRequest.java:139) at com.ibm.rqm.adapter.rft.RFTExecutionThread.run(RFTExecutionThread.java:124)

can anybody help me ?

0 votes



3 answers

Permanent link
Hi, Diego

What version of RQM do you run?
From the error, it seems that you have compiled Java code with JRE7 and tried to run it with lower version.
Is this a Java application and you compiled it with JRE7? Does it work in RFT itself?

0 votes

Comments

 I'm using version 6.0.2

Yes, I'm using jre7 and the script runs in rational normally.
The error only occurs when I try to run by adpater rqm.

I also believe that the error is being caused by some java conflict, but I can not identify where to correct

if you go to adapter console, you should see a java.exe used to run the script(there is a long command there), you may check the version of java. Or check JAVA_HOME if it points to lower version of java?

 

I believe the problem may be related to the .jar files stored in the RFT customization folder: C: \ ProgramData \ IBM \ RFT \ customization The integration returns error of not finding the script, is it possible to customize the execution so that RQM will locate the external libraries of this local folder?

If the external libraries are in the RFT's customization folder(you can check \HKEY_LOCAL_MACHINE\SOFTWARE\Rational Software\Rational Test\8\Rational FT Customization Directory to find out the customization folder), RQM would be able to locate them automatically.

If you suspect the external jar files may be compiled with lower java and causing the issue, you can try to compile them with the correct version of java and then put into the customization folder again and have a test. Another option for the external libraries is to use execution argument -projectpath explained in the below forum discussions:
https://jazz.net/forum/questions/34635/adapter-to-rqm-is-not-recognizing-the-third-party-library
http://technicalshowoff.blogspot.com.au/2011/04/script-facing-class-not-found-exception.html
https://jazz.net/forum/questions/46742/classdefnotfound-error-on-executing-a-rft-script-from-rqm


Permanent link

I just recently noticed the same error when running a RFT script from RQM, and instead of seeing the results, we saw the following error:

ERROR: Could not run the script

In our case the issue was related to RQM using shared location for the RFT scripts. Using local RFT scripts, the issue was not seen.

The following article was created for the behavior that we encountered.

https://www.ibm.com/developerworks/community/blogs/nfrsblog/entry/Running_RFT_scripts_from_RQM_may_fail_when_using_Shared_Location?lang=en_us

Hopefully this will help in your situation as well.

0 votes

Comments


I appreciate the help, but it's not the same case. The error that returns me in the log is as follows:

java.lang.NullPointerException at java.io.File.<init>(Unknown Source) at com.ibm.rqm.adapter.rft.RFTLogUtilities.zipLogFiles(RFTLogUtilities.java:236) at com.ibm.rqm.adapter.rft.RFTExecutionRequest.zipLog(RFTExecutionRequest.java:139) at com.ibm.rqm.adapter.rft.RFTExecutionThread.run(RFTExecutionThread.java:124) 15:20:37,904 [Execution Thread] DEBUG com.ibm.rqm.integration.client.clientlib


Would you know a possible solution?
    


Permanent link

 It is all about to OK, but there is a problem to run the Script via the adapter, It has shown some errors at the run time of it. but there also a solution to get rid of the problem, and these are well described in Canon Printer services you may get a lots of help from it.

<o:p> </o:p>

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,125

Question asked: Nov 28 '16, 12:53 p.m.

Question was seen: 3,347 times

Last updated: Jun 18 '18, 4:17 p.m.

Confirmation Cancel Confirm