How to pass values between different tests in QTP - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to pass values between different tests in QTP (/Thread-How-to-pass-values-between-different-tests-in-QTP) |
How to pass values between different tests in QTP - vijaya.t - 01-12-2011 can we open one test from another in qtp? i am vijaya,when i am doing qtp samples,passing output parameter value of one test to input parameter of another test sample, i am getting error(application busy). can we open one test from another?can anyone help me????? RE: hi - NancyNancy - 01-12-2011 Never Done it before, not too sure, BUT How about an action at the end of the last test to call the second test Let us know RE: hi - Saket - 01-12-2011 this thread Extract data from test and use it in another test may help you. always put a thread title relevent to your query, never use such words like hi, hello as thread title. Please refer posting guidelines. RE: hi - amitspandey - 01-12-2011 Hi, I think nancy is right...this can be tried. RE: How to pass values between different tests in QTP - Brian.Osborne - 05-24-2011 I was able to get this accomplished by using excel. Inputs: 1. I needed a random customer(s) that had a minimum FICO score for 3 different lines of business. Each business would return a different FICO in our test environment. Outputs: During the QTP script, I would capture various information for use later. 1. FICO. I would update the 3 columns of the spreadsheet with a new value in case the FICO has changed since it was last pulled. 2. Application Number. This is submitting an application for a loan for these customers and I want to capture this number for downstream testing. I then just run the next QTP script pointing to the Application numbers sheet I just captured and I am able to use outputs from one QTP script as input for another. And the data is available for viewing and review later. Here is the code: Code: Set objExcel = CreateObject("Excel.Application") I was using a SharePoint site to house the excel doc, but that caused too many issues with checking the doc in, saving, etc.. Hope this helps. Brian RE: How to pass values between different tests in QTP - anumolu9999 - 01-25-2012 @anumolu Use action frame work to call another test from one test. calling actions from another action. To do this Open ur test 1. In expert view, Right click in code area. 2. Then, Click Action->Insert call to Existing 3. 'Select Action' window appears. 4. Click 'Browse' button at the 'From test' section. 5. Select the test u want to insert. 6. click ok button. Then RunAction "TestName", oneIteration will be appeared in your code RE: How to pass values between different tests in QTP - mrajeshtnl - 01-30-2012 can you please explain be about bussiness line and upper bound and lower bound, used in the above script.. is it checking for boundary value analysis |