10-06-2009, 07:15 AM
Hi All,
Can I use the "output value" to output text form one test and use it in another test?
Thanks
Jody
Can I use the "output value" to output text form one test and use it in another test?
Thanks
Jody
Extract data from test and use it in another test
|
10-06-2009, 07:15 AM
Hi All,
Can I use the "output value" to output text form one test and use it in another test? Thanks Jody
10-06-2009, 10:10 AM
No, you cant do this directly, you will have to put this into output parameter of one test and take it into the input parameter of another test.
or you can set the value in data table and use it.
10-06-2009, 02:00 PM
However, I am using a function to generate a string in test1 and want to use that string in test 2.
It is assumed that I don't need to remember the generated string and can ne used in test 2. Input parameter can also achieve it? Thanks Jody
10-06-2009, 02:08 PM
Yes, the returned string from your function in test1 should go in the Output parameter for test1
and use the O/P parameter of test1 as input parameter for test2.
10-06-2009, 03:13 PM
Can it really transfer to another Test file?
it seems that output values from test1 and only be used later within only test1. it is because it stored the output value in a globalsheet. However, when I open Test2,,the value in global files become blank. Then, how can I make it as a input parameter of test 2? Thanks Jody
10-06-2009, 03:20 PM
oh sorry, my mistake. I assumed you are calling tests in an script.
this is not possible if these are two seperate scripts unless you call the scripts through a vbscript.
10-06-2009, 03:27 PM
Write the output from test1 to a excel or filesystemobject. For Test2 read value from the excel data. Does this help ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
if you are using QTP AOM then you can easily do this
see if the code below gives you an idea Code: Set qtApp = CreateObject("QuickTest.Application") missed to assign ouput parameter to the input parameter for second run in the code try this - Code: Set qtApp = CreateObject("QuickTest.Application")
06-30-2011, 02:35 PM
Hey Saket,
Can you give me an example (simple one) for the output parameter of one test and take it into the input parameter of another test.??
04-26-2012, 12:08 AM
Quick-and-dirty alternate method using Windows environment variables:
Code: Sub SetSysEnv(strSysEnvVar,strValue) Archens |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Send automatic email notification when test run started | helmzshelmz | 0 | 1,068 |
04-03-2020, 07:54 AM Last Post: helmzshelmz |
|
Multiple rows of test data | Bhuvana | 0 | 1,337 |
01-03-2020, 09:30 PM Last Post: Bhuvana |
|
Can we test Salesforce Standard form using QTP? | yona34 | 0 | 1,070 |
05-22-2018, 10:57 AM Last Post: yona34 |
|
issue with IE when running test | eiko | 2 | 1,571 |
02-01-2018, 04:46 PM Last Post: eiko |
|
Test runned from QualityCenter generated an error "Attempted to divide by zero." | robertosalemi | 1 | 2,565 |
10-14-2016, 08:38 PM Last Post: robertosalemi |