You can use QTP AOM to configure the test run settings. As suggested by
Ganesh you can use Inputbox to take the input from the user and pass that
variable as Test Input Parameter to the script. Following is a sample code
that you can use:
iStartIteration = Inputbox("Enter the Start iteration number")
iEndIteration = Inputbox("Enter the End iteration number")
Set qtpApp = CreateObject("QuickTest.Application")
Set qtpTest = qtpApp.Test
qtpTest.Settings.Run.IterationMode = "rngIterations"
qtpTest.Settings.Run.StartIteration = iStartIteration
qtpTest.Settings.Run.EndIteration = iEndIteration
Regards
Shalabh Dixit
My QTP Blog <http://shalabhdixit.wordpress.com/>
On Wed, Jun 12, 2013 at 11:34 AM, Gautham Maroli
<[email protected]>wrote:
> Try using the Environment Variable by defining it in a External file
>
> Regards,
> Gautham Maroli
>
>
> On Wed, Jun 12, 2013 at 3:59 PM, RamaKrishna Gondrala <
> [email protected]> wrote:
>
>> Hi Experts..!!!
>>
>> I want to run the QTP script for a particular number of times..But this
>> number should be specified by the user externally during run time. How can
>> I do this?
>>
>> Can someone help me?
>>
>> Thanks,
>> Rama Krishna.
>>
>> --
>> --
>> 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.
>>
>>
>>
>
> --
> --
> 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.
>
>
>
--
--
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.