Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VAPI-XP question

Status
Not open for further replies.

stevexff

Programmer
Mar 4, 2004
2,110
GB
I am using the VAPI-XP mechanism to invoke a specialised test harness via a web service, process the response, and post the result back into TD. It all works fine, but...

My VAPI-XP script gets all the variable information it needs from the three passed TD objects (TestSet, Test, Run). So the code for each VAPI-XP script is always the same.

But each VAPI-XP test I create offers me the option to name the script, then seems to ignore it and generates a new skeleton anyway. I don't want to create 300 identical scripts, I want to use the same script for all of them.

As an interim solution, I have moved all but two lines of my code out to a submodule, so at least I only have one copy of it. But I still get one VAPI-XP script per test.

One possibility is to have just one parameterised VAPI-XP test and associated script, and call it from all the other tests, just passing the parameter. But I can't seem to add a parameter to the VAPI-XP test. Has anyone else done anything similar?

I'm pretty new to TD, so it's possible I'm barking up the wrong tree entirely.
 
There is a VAPI-XP tutorial document available on Mercury's support website at support.mercury.com

You'll have to hunt through the knowledge base for it though - I don't have it on hand or I'd simply pass it on.



Cheers,
Dave

"Yes, I'll stop finding bugs in the software - as soon as you stop writing bugs into the software." <-- Me

For all your testing needs: Forum1393
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top