06-07-2008, 04:12 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...
and now open new master test script
Should have the following set of statements in master test script
correct me if i am wrong
thanks
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...
Code:
Public sub Login()
.'record/write the set of statements
. close the function end sub EndSub
End Sub
public sub Manipulations()
'record/write the set of statements
End sub
public Sub Logout()
'record/write the set of statements
End sub
and now open new master test script
Should have the following set of statements in master test script
Code:
Public Function MasterFunc()
Call Login
Call Manipulations
Call Logout
End Function
correct me if i am wrong
thanks