Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Whats wrong in this Descriptive Program? within the QTP forums, part of the Software Testing category; This was the test that is coded using Descriptive Programming (DP) techniques. I couldn't solve the problem when I was learning QTP. It is reopened today and the problem still ...
|
|||||||
|
|||
|
Whats wrong in this Descriptive Program?
This was the test that is coded using Descriptive Programming (DP) techniques. I couldn't solve the problem when I was learning QTP. It is reopened today and the problem still persists.
Quote:
All its argument values are written after applying “Object Spy” on the respective objects. Please help solve this problem. |
| Sponsored Links |
|
|||
|
Re: Whats wrong in this Descriptive Program?
Hi ,
can you send the script with out the "with" method? i think some objects are missing. Yan. |
| The Following User Says Thank You to yan For This Useful Post: | ||
|
|||
|
Re: Whats wrong in this Descriptive Program?
Hi,
Your script needs some more descriptions & modifications. Here is the right script: with window("text:=Flight Reservation") .activate .activeX("acx_name:=MaskEdBox").type "070707" .wincombobox("attached text:=Fly From:").Select "Denver" .wincombobox("attached text:=Fly To:").Select "London" .winbutton("text:=FLIGHT").click .dialog("text:=Flights Table").winlist("attached text:=From", "Window ID:=2001").select 1 .dialog("text:=Flights Table").winbutton("text:=OK").click .winedit("nativeclass:=Edit", "attached text:=Name:").set "SutNarCha" .winbutton("text:=&Insert Order").click end with |
|
|||
|
Re: Whats wrong in this Descriptive Program?
Here is the right script:
with window("text:=Flight Reservation") .activate .activeX("acx_name:=MaskEdBox").type "070707" .wincombobox("attached text:=Fly From:").Select "Denver" .wincombobox("attached text:=Fly To:").Select "London" .winbutton("text:=FLIGHT").click .dialog("text:=Flights Table").winlist("attached text:=From", "Window ID:=2001").select 0 .dialog("text:=Flights Table").winbutton("text:=OK").click .winedit("nativeclass:=Edit", "attached text:=Name:").set "SutNarCha" .winbutton("text:=&Insert Order").click end with |
|
|||
|
Re: Whats wrong in this Descriptive Program?
You can try for this script, u will get it
This script is for inserting a order and know the order no. Dim a Window("text:=Flight Reservation").Activate Window("text:=Flight Reservation").WinObject("attached text:=Date of Flight:","window id:=0").type "10/10/07" Window("text:=Flight Reservation").WinComboBox("attached text:=Fly From:").select"London" Window("text:=Flight Reservation").WinComboBox("attached text:=Fly To:").select"Los Angeles" Window("text:=Flight Reservation").WinButton("text:=FLIGHT").Click Dialog("text:=Flights Table").Activate Dialog("text:=Flights Table").WinList("attached text:=From","window id:=2001").select"19095 LON 10:24 AM LAX 01:54 PM AF $173.47" Dialog("text:=Flights Table").WinButton("text:=OK").click Window("text:=Flight Reservation").WinEdit("attached text:=Name:","window id:=1014").set"rajaputra" Window("text:=Flight Reservation").WinRadioButton("text:=Business").click Window("text:=Flight Reservation").WinEdit("attached text:=Tickets:","window id:=1029").set"2" Window("text:=Flight Reservation").WinButton("text:=&Insert Order").click wait(10) a=Window("text:=Flight Reservation").WinEdit("attached text:=Order No:").GetROProperty("text") msgbox "ThankYou. Your Order No - "&a |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Descriptive Programming | thotaravikiran | QTP | 12 | 09-02-2009 04:44 AM |
| Knowledge about Program ID in Cobol program | RyanJames | MainFrame | 2 | 02-14-2008 09:32 AM |
| Run a program as a different user in XP | Lokesh M | Windows | 10 | 10-28-2007 02:41 PM |
| Recursion in Program | joel | MainFrame | 2 | 04-25-2007 08:03 AM |
| When things go wrong... | Lokesh M | Geeks Lounge | 2 | 12-11-2006 10:09 PM |