Suppose Object name was changed in the application in the
second build.I have just modified the name in the Object
repository as changes in the Application.
Is it possible to accure changes in the script accordingly?
If so
Suppose I am calling the script through function,
Will the changes affect in the script(which is in the
function)automatically?
If not affected, tell me the solution,How to handle this.
How should I change the object property name while using
functions
Answers were Sorted based on User's Feedback
Answer / sundar
Hi Friends
if we change the object name in the object
Rep,automatically cahnges will affected in Script also
it will be work in both Local and shared object Rep
does it make sense?
| Is This Answer Correct ? | 2 Yes | 1 No |
The script/code on Function will not be reflected
automatically. So you have to change the logical name of
the object in your functions manually.
This is only the possibility to modify the script.
This case, Better to use descriptive programming.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / rayudu
I am asking that When we call the script through function,
what will happen?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shaik
Yes ,When a Object Property Changes (I,E in OR) .You need to
change the property of the object in the Function also.Then
only it will it will identify the object with that logical name.
| Is This Answer Correct ? | 0 Yes | 1 No |
What phases are involved in testing an application in qtp?
I have recorded a test using qtp to download a file in an application. Code: Browser("MFA Work Queue Manager").Page("MFA Work Queue Manager").Link("Rules Maintenance").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebEdit("txtSearch").Set "PmtType" Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Search").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Export").Click Browser("MFA Work Queue Manager").Dialog("File Download").WinButton("Save").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").Sync Dialog("Save As").WinButton("Save").Click Dialog("Save As_2").WinButton("Yes").Click Problem: When running this test it gives an error at line no. 5 as Save button object is not identified by it's parent object. This code I ran 4 times after recording at it was working fine but 5th time onwords, it starts giving me the above problem. I used exist property option, Check Property option but none of this changes work at all. Kindly help...
How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one
Q- what is the advantage of merging tool in QTP 9.2?
Write script to fetch the data from global sheet where row number is 3 and parameter is "text"
3 Answers Accenture, Thomson Reuters,
How will you handle custom object in QTP?
what is recovery scenario in QTP? what is the need of the recovery scenario in QTP? what are the advantages of the recovery scenarios in QTP?
What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.
What is the use of "Step Generator" in QTP??for what purpose we are using??explain with an example
How to make arguments optional in a function?
In Datatable having the data like this S.no Name Address 1 raj hyderabad 2 suresh Mumbai 3 shyam chennai 4 dev banglore i want to get the shyam row id & column id using scipting i.e 3,3
Hi, I want to retrieve the cell data in the WebTable. For that I have defined a new test object under the browser and have given html tag and text as the test object properties. But while I try to identify it it says 'Object description is not unique'. I tried adding innerhtml, outerhtml, innertext and outertext along with the ordinal identifiers; but no use. What more properties need to be added to identify it? Also I want to enable smart identification for this object but the field is disabled in the object repository for this object alone(In QTP tools->object identification the enable smart identification checkbox is enabled). How do I enable it?