VB Script
statement structure to perform operation on application object:
Syntax: Object
hierarchy.Method “Value”
Ex:
Write VB Script to enter “Rahul” in the “Name:” edit box at
“Sample” window
Script: Window(“Sample”).winEdit(“Name:”).Set “Rahul”
In general
VB Script statement contains 3 sections
1.
complete
hierarchy of test object (i.e. parent to child object)
2.
operation or
method or Test Object method
3.
Value or data or
test data
Note: based
on application environment object class can be defined
Ex: for a
Edit box\Text
Standard
windows based application à WinEdit
Web based
application àWebEdit
Visual basic
application àVbEdit
Java
environment application àJavaEdit
0 comments:
Post a Comment