Hi Ravi thank yoiu.

     Can you tell me where to insert this function? In the Vbs file ? or in 
QTP under each script ?

On Monday, June 24, 2013 1:24:38 AM UTC-4, Ravikiran wrote:
>
> Hello,
> you can make function like below and call multiple times in one VBS file 
> and add this VBS into schedular.
>  
> Set qtApp = CreateObject("QuickTest.Application") 
> qtApp.Launch 
> qtApp.Visible = True
>  
> Call scriptscall(scritps_location)
> Call scriptscall(scritps_location)
> Function scriptscall(scritps_location)
> qtApp.Open scritps_location
> Set qtTest = qtApp.Test
> qtTest.Run 
> qtTest.Close
> End Function 
>  
>  
> qtApp.Quit
> Set qtApp =Nothing
>
>
>
> On Mon, Jun 24, 2013 at 9:24 AM, Ganesh muralidharan 
> <[email protected]<javascript:>
> > wrote:
>
>> No I used to create one vbs for all the QTP scripts. windows scheduler 
>> used to call the single vbs.
>>
>>
>> On Sun, Jun 23, 2013 at 10:40 PM, <[email protected] <javascript:>>wrote:
>>
>>> yes windows schedule. So you cant run multiple scripts. I have to create 
>>> new task for each and every script?
>>>
>>>
>>> On Sunday, June 23, 2013 11:35:48 PM UTC-4, Ganesh muralidharan wrote:
>>>
>>>>  Are you referring to Windows scheduler? You can configure windows 
>>>> scheduler to run one script at a time. 
>>>>
>>>>
>>>> On Sun, Jun 23, 2013 at 10:31 PM, <[email protected]> wrote:
>>>>
>>>>> Hi
>>>>>  Can we run multiple scripts using System schedule?
>>>>> or only one script per schedule?
>>>>> and have to create separate schedule for each script? 
>>>>> below script i am using it 
>>>>>
>>>>> Set qtApp = CreateObject("QuickTest.**Application") 
>>>>> qtApp.Launch 
>>>>> qtApp.Visible = True
>>>>> qtApp.Open "C:\Users\Wajahat.awan\**Desktop\Automation\Private 
>>>>> DHC\Gmc DHC"  'this is the location of test scripts
>>>>> Set qtTest = qtApp.Test
>>>>> qtTest.Run 
>>>>> qtTest.Close
>>>>> qtApp.Quit
>>>>> Set qtApp =Nothing
>>>>>
>>>>>
>>>>> Set objResultsOptions = CreateObject("QuickTest.**RunResultsOptions")
>>>>> objResultsOptions.**ResultsLocation = strPathname & getTimestamp() 
>>>>> 'Suppose you have a function that returns you the timestamp
>>>>>
>>>>> qtTest.Save
>>>>> qtTest.Run objResultsOptions
>>>>>  
>>>>> -- 
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google
>>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>> group.
>>>>> To post to this group, send email to [email protected]
>>>>>
>>>>> To unsubscribe from this group, send email to
>>>>> MercuryQTP+...@**googlegroups.com
>>>>>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>>>  
>>>>> --- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing" 
>>>>> group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to mercuryqtp+...@**googlegroups.com.
>>>>>
>>>>> For more options, visit 
>>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>>> .
>>>>>  
>>>>>  
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Regards,
>>>>
>>>>
>>>> Ganesh Muralidharan
>>>> 'God Never Forgets' 
>>>>
>>>  -- 
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]<javascript:>
>>> To unsubscribe from this group, send email to
>>> [email protected] <javascript:>
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>  
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing" 
>>> group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>
>>
>> -- 
>> Regards,
>>
>>
>> Ganesh Muralidharan
>> 'God Never Forgets' 
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to