Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaDialog change every time i run my test
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
Hello ,
I have a question, please look at my code below:
Code:
JavaWindow(“ABC”).JavaDialog(“Add”).JavaEdit(“JTextArea”).Set(“123″)
When i run my code … JavaDialog change every time from and expects different code each time and i have to change code to any of following:
Code:
JavaWindow(“ABC”).JavaDialog(“Add”).JavaEdit(“JTextArea”).Set(“123″)
OR
Code:
JavaWindow(“ABC”).JavaDialog(“Add_2″).JavaEdit(“JTextArea”).Set(“123″)
JavaWindow(“ABC”).JavaDialog(“Add_3″).JavaEdit(“JTextArea”).Set(“123″)

why does it change every time. how can i write a code that run every time without changing anything?
Reply
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
Under Toos > Options > General tab,
Java test object description , change the radio button to "Different test object descriptions"
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 10 Years, 9 Months, 2 Weeks ago
Thanks Ankur ,
this was my first post and such a quick response .. thanks!
i will try to put code in [code] tag.

Can you please also explain how this radio button changed the setting?
Reply
#4
Solved: 10 Years, 9 Months, 2 Weeks ago
With this option, It is recording the new logical name only when the object properties are different.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 6,488 03-25-2021, 08:27 AM
Last Post: RB26578
  Send automatic email notification when test run started helmzshelmz 0 905 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,480 11-22-2016, 12:43 PM
Last Post: Ankur
  QTP not recogonising object during run time Lavanya N 2 3,518 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 11,634 08-27-2015, 10:18 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)