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

Null Pointer Exception in QTP Adatper Console

Hi,

I am using RQM-QTP-9.x-Adapter-v2.0 and i have integrate it with RQM 2.0

When i try to execute QTP Scripts from Rational Quality Manager following error occurred:


:\QTPAdapterHome\QTPAdapter\bin>Echo Off
aunched the Adapter console
aved current adapter settings in config.properties file
aved current adapter settings in config.properties file
uccessfully created an HTTP client
he adapter is now connected
reated Quick Test Professional v2.0 Adapter.
QMQTPProcessor.Import()] Uploaded 1 test scripts
ser Dir: C:\QTPAdapterHome\QTPAdapter\bin
xecuting QTP Test Script from local machine...

java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown
Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Sourc
)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
n Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



What could be the issue?
Can any one please let me know about this its very urgent.


Thanks,

Rajesh Gottapu.

0 votes



5 answers

Permanent link
Hi Rajesh,
To be honest I am not too familiar with the internals of this integration, but it looks like it is uploading the script to the location C:\QTPAdapterHome\QTPAdapter\bin and then failing to load it. Does your script show up in that directory tree? Any issues with file access to that directory?
Not definitive but at least it is somewhere to start.
Regards,
John

Hi,

I am using RQM-QTP-9.x-Adapter-v2.0 and i have integrate it with RQM 2.0

When i try to execute QTP Scripts from Rational Quality Manager following error occurred:


:\QTPAdapterHome\QTPAdapter\bin>Echo Off
aunched the Adapter console
aved current adapter settings in config.properties file
aved current adapter settings in config.properties file
uccessfully created an HTTP client
he adapter is now connected
reated Quick Test Professional v2.0 Adapter.
QMQTPProcessor.Import()] Uploaded 1 test scripts
ser Dir: C:\QTPAdapterHome\QTPAdapter\bin
xecuting QTP Test Script from local machine...

java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown
Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Sourc
)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
n Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



What could be the issue?
Can any one please let me know about this its very urgent.


Thanks,

Rajesh Gottapu.

0 votes


Permanent link
Hi all,

I am trying to import QTP scripts in RQM and execute them in RQM.
I am getting the following error in the adapter console when i am trying to run the script in RQM


java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
n Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
wn Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Can anybody tell me the problem and how to solve it.
Awaiting your replies!

Amrutha

0 votes


Permanent link
Hi all,

I am trying to import QTP scripts in RQM and execute them in RQM.
I am getting the following error in the adapter console when i am trying to run the script in RQM


java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
n Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
wn Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Can anybody tell me the problem and how to solve it.
Awaiting your replies!

Amrutha


I get the exact same error when trying to execute the QTP script from within RQM. Any help is greatly appreciated.
Thanks

0 votes


Permanent link
Hello,

I was able to solve the problem by changing a particular setting in Quick test professional. hope this would be useful for others who have the same problem.

Open Quick Test Professional -> Click Tools -> Select Options -> Select Run (Present on the left side bar) -> In the window Check the box which says "Allow other Hp products to run tests and components" and say -> Apply

Through this QTP adapter is allowed to run QTp scripts from RQM.

Hope this helps!

0 votes


Permanent link
Hello,

I was able to solve the problem by changing a particular setting in Quick test professional. hope this would be useful for others who have the same problem.

Open Quick Test Professional -> Click Tools -> Select Options -> Select Run (Present on the left side bar) -> In the window Check the box which says "Allow other Hp products to run tests and components" and say -> Apply

Through this QTP adapter is allowed to run QTp scripts from RQM.

Hope this helps!



Hi,

Unfortunately I encounter the same problem. Even after checking the box which says "Allow other Hp products to run tests and components". I still receive each time:


D:\data\QTP\QTPAdapter\bin>ECHO OFF
Loading HP QuickTest Professional Java Support (version 10.0.2297.0) (SUN 1.6.0_
21)
Launched the Adapter console
Successfully created an HTTP client
The adapter is now connected
Created Quick Test Professional Adapter 2.0.0.3
User Dir: D:\data\QTP\QTPAdapter\bin
Executing QTP Test Script from local machine...

java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown
Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Sourc
e)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
n Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
wn Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Is there anyone that can help me with this issue?

Thanks in advance,


Chris Hauwert

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

Question asked: Dec 11 '09, 6:53 a.m.

Question was seen: 7,984 times

Last updated: Dec 11 '09, 6:53 a.m.

Confirmation Cancel Confirm