can anyone explain about the Descriptive programming in
detail. I mean how to use in the script.
Answer / 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 |
i want to learn testing tools what i have to know before.iam fresher i dnt know any this..which langagues i have to before testing.
How to customize checkpoints with parameters?
what is functions in qtp?i know the userdefind &bulit funation or i know that Private public function ?plz tell me what is funations in qtp?how to create a funation in qtp
How to make arguments optional in a function?
How is the Bitmap checkpoint different from Image checkpoint?
WHAT IS OBJECT REPROSITORY?
I have to automate webpage. If I click one hyperlink2 it will take 2 hrs to open. How to automate hyperlink2?
4 Answers Cap Gemini, Polaris,
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
how to find that tools work well with ur existing system?
Suppose i have given 10 test cases all the test cases should be automated?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
Dim ExcelSheet Set ExcelSheet = CreateObject("Excel.Application") excelsheet.application.visible = true ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1" ' Save the sheet. ExcelSheet.SaveAs "C:\DOCS\TEST.XLS" ' Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit after run this script i am getting error"The test cannot continue due to unrecoverable error"