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]]])
1 comment:
Hi,
Hi I am Using TestPartner as a Automation testing tool
I am successfully able to run the scripts through command prompt and also able to export the result in a folder which is in a xml/testpartner readable format and hard to analysis them without the help of testpartner, I am planning to convert these result in an easily readable text format, so that each and every developer can easily analysis the result.
Can any have any idea about this.
Thanks and Regards,
Post a Comment