D.P for Flight Application Login

invokeapplication"D:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set "abcd"
Dialog("text:=Login").WinEdit("attached text:=Password:").SetSecure "47e2b30da686ac4f243e9c695c64fa76c5931577"
Dialog("text:=Login").WinButton("text:=OK").Click


invokeapplication"D:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"

Above line invokes(opens) flight application login dialog.
syntax to invoke application is invokeapplication"path of application"

To get path of flight application

1.Right click on flight application.
2.Click on properties.
3.Click on General Tab in Flight Properties Window.
4.Copy path that is specified beside location in flight properties window.
5.Paste path beside invokeapplication in double quotes.

Dialog("text:=Login").WinEdit("attached text:=Password:").SetSecure "47e2b30da686ac4f243e9c695c64fa76c5931577"

To get password in encrypted form

Go to Start ->Programs->QuickTest Professional ->Tools->Password Encoder

1.Password Encoder window opens.
2.Type password(mercury)near password textbox.
3.Click on Generate button.
4.U get password in Encoded String textbox(encrypted form).

QTPScript for Data Driven Testing using Datatable
QTPScript for connecting to database
Script for Messagebox to disappear after certain time
Test Scenario for Search Engine
QTP Faqs
Manual Faqs
Sql Server Faqs
Descriptive Programming for Yahoo Login Page

No comments:

Related Posts Plugin for WordPress, Blogger...