anybody give me the real time example for descriptive
programming of web application
Answers were Sorted based on User's Feedback
Answer / shyam.meghansh
DP is advance topic in QTP. With out loding obj in repo...
we can access them..... this is one of the example for that
systemutil.Run("http://www.rediffmail.com")
set BRO =Description.Create()
BRO("title").Value = "Welcome to Rediff.com India"
BRO("name").value ="Welcome to Rediff.com India"
BRO("openedbytestingtool").value= true
Set PG =Description.Create()
PG("title").value="Welcome to Rediff.com India"
PG("url").value="http://www.rediff.com/index.html"
Set UN =Description.Create()
UN("name").value= "login"
UN("Class Name").value ="WebEdit"
UN("type").value= "text"
UN("html tag").value="INPUT"
Set PWD =Description.Create()
PWD("name").value ="passwd"
PWD("Class Name").value="WebEdit"
PWD("type").value="password"
PWD("html tag").value="INPUT"
Set Login =Description.Create()
Login("name").value ="Go"
Login("Class Name").value="WebButton"
Login("type").value="submit"
Login("html tag").value="INPUT"
Login("value").value="GO"
Login("class").value="rmailgobtn"
temp= Browser("Welcome to Rediff.com").Page("Welcome to
Rediff.com").WebElement("ShockwaveFlash1").Exist
If temp= true Then
'Browser("Welcome to Rediff.com").Page("Welcome to
Rediff.com").WebElement("ShockwaveFlash1").
End If
Browser(BRO).Page(PG).WebEdit(UN).Set "shyam_sad"
Browser(BRO).Page(PG).WebEdit(PWD).Set "7shyam"
Browser(BRO).Page(PG).WebButton(Login).Click
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / vvgiri2k6
dp means without using repositury tool will identify the
object using property values.
ex browser("name").page("name").webbutton("name")
for this line descriptive program is
browser("window id:=1005").page("window
id:=22").webbutton("window id:=787")
we can use any property but that should be unique
here i used window id like that we can use any propery.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / rama
web appication testing means testing the external
link & internal link of the web page.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / lakshmanalal kintali
the idea behind the descriptive progrmming is not bypass
the odject Repository but helps the recognize dynamic
objects.in D.P u don't store the object and its properties
values in O.R but mention the properties values in directly
on the script
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / lakshmanalal kintali
the idea behind the descriptive progrmming is not bypass
the odject Repository but helps the recognize dynamic
objects.in D.P u don't store the object and its properties
values in O.R but mention the properties values in directly
on the script
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shah
I used descriptive programming when the object's property values are changing dynamically. I used descriptive programming when I am supposed to start testing before the build is deployed. or when I don't want to add objects in the object repository for e.g, I was testing a web application and it has 10 pages that are integrated with each other and each has three buttons (ok, cancel, and help) if I add those buttons in the object repository I have to add 30 objects so instead of adding it to object repository I used descriptive programming.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nash
Descriptive programming means nothing but loading the object
respository by writing code not by recording..
| Is This Answer Correct ? | 0 Yes | 3 No |
How we know the qtp has used the smart identification process for identification of the object.
what is the extension for QTP files?
16 Answers American Solutions,
One build is delivered. in that build button name is submit. but in the next buit that name of the button changed as login.are u continue with previous recorded script or u make any changes?
What is the basic concept of quicktest professional?
What is the difference between Mandatory and BaseFilter Properies..Anybody please answer me..Thanks in Advance
pls tell me different type of automation frame works in QTP and which one need to select in client server application
I am using environment variable xml to give credenatials for login into unix. Is there any way we cam mask the password in the xml?
How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.
How can we get a textcheckpoint in QTP9.1?
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
Hi, My problem is as follows. I recorded a script that created Object repository of each action i recorded. But later I added one more step (which was to enter data in a textfield) into the script through expert view. But as no repository for this newly added step exists in the test, my script fails. So please help me to sort this problem that how can I create object repository of a new step in an existing test. Thanks everyone
How to match two doc files using qtp requirment is:- each and every single word of a doc file should be matched with the another doc file. can someone send me the code.