Posts: 1
Threads: 1
Joined: Feb 2008
Reputation:
0
02-21-2008, 08:04 PM
I have written many scripts eg. Login, Navigation, check Lookups, check searchdetails scripts. I would like to now have one script that will call these scripts.
I don't want to use "Call to Existing action" or the Test Batch Runner. I like the Batch Runner concept but i dont like the way it runs. Could some one please help me such that i can have one script that calls other scripts.
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
02-22-2008, 11:55 PM
"Call to existing action" is the standard way followed. What's the reason behind you not wanting to use this?
Posts: 24
Threads: 7
Joined: May 2008
Reputation:
0
06-07-2008, 04:09 AM
Hi ,
Though my question sounds silly but i want to make sure how the above one works...
i have 3 individual sripts that does Login, Manipulations , Logout... say...
in QTP.. when new test opens... do i need start with below 3 individual scripts and save them with their respective function names...
Public sub Login() public sub Manipulations() public Sub Logout()
. 'record/write the set of statements 'record/write the set of stmnts 'record/write the set of stmnt
. close the function end sub EndSub
End Sub
and now open new master test script
Should have the following set of statements in master test script
Public Function MasterFunc()
Call Login
Call Manipulations
Call Logout
End Function
correct me if i am wrong
thanks
Posts: 3
Threads: 0
Joined: Jun 2008
Reputation:
0
06-10-2008, 12:52 PM
Hi,
Here you go with the automation framework design,
First make all your scripts eg. Login, Navigation, check Lookups, check searchdetails scripts. into functions
like
Function <Function Name>
script lines
End Function
Ex:
Function Login
script lines
End Function
In the same way create all scripts into functions and make them .vbs file and place them in the function library.
Now you create one script called (Driver Script - which drives which script to run, which script to not to run etc)
Please let me know if you need more info on this
Regards,
Pavan