*** this is the sample script for login into the application***
//every statement must be within the main
//declare variables through dim satatement. here Result is the default integer type variable
Dim Result As Integer
//single quote (') is comment simbol
'Initially Recorded: 7/19/2006 12:41:57 PM
'Script Name: abc
StartApplication """C:Program FilesRationalRational TestSample ApplicationsClassics OnlineClassicsA.exe"""
Window SetContext, "Name=frmExistingLogin", ""
//choosing a user name from a combo box
ComboBox Click, "Name=lstUserName", "Coords=142,9"
ComboListBox Click, "ObjectIndex=1", "Text=Susan Flontly"
//giving password through keyboard
EditBox Click, "Name=txtPassword", "Coords=105,13"
PushButton Click, "Name=cmdOK"
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.
Answer should be complete in itself.