can anyone explain about the Descriptive programming in
detail. I mean how to use in the script.
Answer Posted / shyam.meghansh
Descriptive Programming comes under Advance QTP .... in
this we do not require any objects in object repository....
with out adding objects in repository we can test the
application .... the concept DSP
so in DSP we will not add the objects in repository....
inside we will take the logical names of the object and
accesss those... chk one of the example
*============================================*
systemutil.Run("C:\WINNT\NOTEPAD.exe")
Set Open_Pad=Description.Create()
Open_Pad("text").value="Untitled - Notepad"
Set Text_Area=Description.Create()
Text_Area("window id").value="15 "
Set File_Menu=description.Create()
File_Menu("window id").value="262737"
Set File_Menu_Save=description.Create()
File_Menu_Save("window id").value="0"
File_Menu_Save("x").value="681"
File_Menu_Save("y").value="53"
'#32768Menu
Set Save=Description.Create()
Save("text").value="Save As"
Set Enter_File_Name = Description.Create()
Enter_File_Name("attached text").value="File &name:"
Enter_File_Name("window id").value="1148"
Set Save_Button = description.Create()
SAve_Button("text").value="&Save"
Set File_Menu_Close=description.Create()
File_Menu_Close("window id").value="0"
File_Menu_Close("x").value="681"
File_Menu_Close("y").value="53"
Window(Open_Pad).WinEditor(Text_Area).type( "This is shyam
doing the descriptive fro notepad")
Window(Open_Pad).WinMenu(File_Menu_Save).Dialog
(Save).WinEdit(Enter_File_Name).set "demo"
Window(Open_Pad).WinMenu(File_Menu_Save).Dialog
(Save).Winbutton(Save_Button).click
Window(Open_Pad).WinMenu(File_Menu_Close)
*============================================*
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
Output values? i want a practical example
What are the ordinal identifiers in web page?
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
How qtp recognizes the object?
how to prepared for first for the first interview?
What is the quicktest professional testing process?
Suppose I want fail that check point? How can you do that?
What are metrics and matrix?
Can we Test Welcome Screens and Process Images with QTP
How to start recording using quicktest professional?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance