Unified Functional Testing Practitioners Forum
cancel

Share parameter among QTP tests?

SOLVED
Go to solution
Highlighted
Rohit_ta
Acclaimed Contributor

Share parameter among QTP tests?

Hello

 

I know we can share parameters between actions in the same test by putting them in Global data table.

Is there a way to share data / parameters between tests in QTP? SO, If I run a batch of tests, and all the tests use a parameter, I want to change the value in one location and not in Global data table of each test.

 

Thanks in advance.

2 REPLIES
DDM_Automation
HPE Expert
Solution

Re: Share parameter among QTP tests?

Hello ,

 

Please check  "User defined external Environment variables" where any test can read variable created and stored in an external XML file.

QTP user guide has details on this.

 

Also , there is a KB article by HP which talks about sharing data between tests. Here is the link for it :

http://support.openview.hp.com/selfsolve/document/KM197598

 

You will need a HP passport sign-in credentials to view the content.

 

Regards ,

HP support 

 

If you haven’t tried it yet, come and join us in our entitled forums at :

 http://h30499.www3.hp.com/t5/News/Support-Customer-Forums-now-available/m-p/5610181/message-uid/5610181#U5610181

HP support Engineers will be available to answer queries.

[If this post or any other post helps to resolve your issue or query, mark the thread as solved and give KUDOS to the author for their assistance. ]

( Posts and opinions made here are my own and do not reflect the opinions of my employer HPE in any way . )
Rohit_ta
Acclaimed Contributor

Re: Share parameter among QTP tests?

Thank you! That's exactly what I was looking for.

//Add this to "OnDomLoad" event