what are the disadvantages of descriptiveprograming
Answers were Sorted based on User's Feedback
-> QTP wont automatically provide the lines of code
while recording. By default QTP follows Object Repository
method.
-> Writing script for objects with multi fields proves
the line of code to be very lengthy and difficult to
comprehend.
-> DP by itself wont support smart identification, if
at any case the object identification properties wont
exactly match.
-> It is not easy to specify regular expression for
object identification if we are using DP.
-> DP is not supportive to insert checkpoints
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / ss
writing code takes a lot of time because we need to write
every character in the code.
To my knowledge, since there is no OR, there is no central
control over the script. If OR is htere, we can add the
properties easily to the objects
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / chaitu
It is not possible to implement in All areas of an
Application that means simple Test case may be takes alot
code.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / debasis
the exact point for the question is when the property & value
pair changes,we need to change each variable that stores the property & value Pair used in scripting,which is very time consuming.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / naren
In addition to the above ans one more important point is
The scripts developed using DP is not easily understand and
executed by the other members
| Is This Answer Correct ? | 1 Yes | 3 No |
What is the entry criteria and exit criteria for your test automation
On what basis we select test cases to automate?
What is wrong in my code?
How does qtp identify gui object?
what are recovery management techiniques?
2 Answers BirlaSoft, GL Noble Denton,
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
How do you know the location Id of an object if you know its index id?
Plz write the code, function will take the parameter as month number, i.e., numerical value, but it returns the last day of the month in string (weekday). example: input: function parameter: 3(march) output: thursday
Suppose if a functionalityis not mensioned in requirement document and but its present in application. will it be consider as a bug and viceversa?
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c
Hi, I want to pass a value in to Link object. For ex: I have a link where in which contains the value like "DC4463219(Active)". Whenever i will execute the script this value "DC4463219 (Active)" will get changed. I got the value DC4463219(Active) from the link and stored that value in variable "ACTUAL". If i want to select the same link again, while recording the value DC4463219(Active) will be recorded in object repository. So, that it will not work for the next cycle of execution as the value will get changed everytime as i mentioned above. I want to pass that Acutal value in to link object. The script is as follows: Actual Script when recording: Browser("Web Login").Page("Application").Frame ("ScopeFrame").Link(DC4463219(Active)".Click But now instead of this DC4463219(Active) i want to pass a variable where i have the same value. I tried to execute the script Browser("Web Login").Page("Application").Frame ("ScopeFrame").Link(Actual).Click But it is displaying the error message as that the value which we got from Actual is not existing in Object repository. So,i made the link object as regular expression. Even it is displaying the same message as mentioned above. If you are not able to understand, feel free to contact me with nbabu11@gmail.com
How to handle the exceptions using the recovery scenario manager in qtp?