can objects recogonised without repository?
Answers were Sorted based on User's Feedback
Answer / naresh
I dont know exact answer but,
Yes. In descriptive programing, we dont use object
repository. we give proprties of the object in order to
recognise it uniquely, in script.
Plz correct me if i'm wrong
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / megha s iyer
Descriptive programming is doing programming giving
description for an object in terms of value of the
properties of the object and recognising the object during
runtime without storing the object and its properties in
object repository.
For example:
If you want to identify the winedit object with the value
100 and ie editable in it we can write descriptive
programming for this in the below given manner:
Set objdesc=Description.Create()
objdesc("Class Name").value="winedit"
objdesc("text").value= "100"
objdesc("Enabled").value=True
Window("XYZ").Winedit(objdesc).Set "123"
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / suresh
Yes Naresh.. Ur absolutly correct..
U can use Descriptive Programming where object Repositary is
not necessary..
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / prasad vasala
yes, descriptive programming is the best way for
recognizing the objects uniquely.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / bharat
Maha Lakshmi, you are wrong we can recognise objects using
descriptive programming as suggested by naresh and megha or
the other way round is we can specify the properties in the
statements itself like
Browser("name:=Google").Page("title:=GoogleHome").Link
("name:=Search").Click
You can see about Descrition.Create() in QTP help.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / maha lakshmi
please clear my doubt what is meant by "Descriptive
Programming"?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jagan paruchuri
ya without object repository the object can identified by creating the desription for that object
ie, for example we have one edit box
dim oedt
set oedit=description.create()
oedit("any property").value="WinEdit"(for windows application) or "WebEdit"(for webapplications)
Browser("").page("").WinEdit("").set"XXXXXXXXXX"
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chaitanya
ya its can recognize by descriptivt progrrame
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / maha lakshmi
without repository the objects cannot be recognonised
because while we running the script,objects should be there
in the object repository
| Is This Answer Correct ? | 0 Yes | 11 No |
i have batch scripts in qtp and i want to update the status like pass/fail in excel sheet after excecuting the every script in batch.how to write the script for this?
I want to know how to execute the descriptive programming in qtp for the webedit object which does not contain attached text property. but i have checked it with name and html id property. Even though it is not executing. it is giving error in object's physical description.
what is supply chain management?
When and why to use descriptive programming?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
what is stepin & stepout?
Explain the concept of object repository and how qtp recognises objects?
I have made the recovery scenario in script. When i am exceuting the script. it stop automatically after running recovery scenario. Please tell the resaon?
i m tryed to use qtp in a user registration form but at the "image enter"part it gives a error when i run the qtp bcz the image is changed every time so it gives a error when i use regukar expreesion fot this it still gives a error value bcoz it reads the image code bt nt reconige the image which i enter in the image verification text box.so hw can i automate qtp for this function.plz give me a answer
Name the properties you would use for identifying a browser and page when using descriptive programming?
how do u import the test cases written in excel sheet to qtp? and how do u generate the script in qtp for the testcase in excel sheet? plzzzz do answer this question thanks in advance
How do u use Database checkpoints and what are the use?