From the command line, type TP
(or)
Step-1: Go to Run and Type cmd
Step-2: type tp -u userid -p password -d dsn name -r project name -s scriptname
Step-3: Click on enter
2) To invoke application automatically in TestPartner
Shell("Path of exe")
3) To Run Multiple Scripts in Test Partner
Run("Script Name")
4) To Invoke WebURL from I.E use
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE project URL"
5) To Run Functions from Module,include '$TPINCLUDE "Script Name"
Keep Function
6) Object Mapping:This is used to give alias name for better identification of the Object.
To record forcebily objects by testpartner we are using object mapping.
7) Examples of Test Partner Recorded Objects
i)Focus on a Window ---->Window("Window Name").Attach
ii)Attach a Frame ---->HTMLFrame("Name=Frame Name").Attach
iii)Type a Text in a Edit Box ---->HTMLEditBox("Name=Obj Name").SetText "Typed text"
iv)Click on Button ----->HTMLButton("Name=Object name").Click
v)Select an item in List Box ----->HTMLListBox("Name=Object Name").Select "Item No"
8) To Create Bat File and Run the test partner Scripts.Follow Below Navigation
Step-1:Open Notepad
Step-2:Type tp -u userid -p password -d dsn name -r project name -s scriptname
Step-3:Save the File in desktop with '.bat' extension and select file type as all files.
Step-4:When click on icon open application testpartner with automatically execute the scripts
9)Split:Returns a zero-based, one-dimensional array containing a specified number of substrings.
Syntax:Split(expression[, delimiter[, limit[, compare]]])