Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18539 Posts in 4847 Topics- by 32743 Members - Latest Member: watty
 

AdvancedQTP forums have been nominated as a finalist in ATI’s 2nd annual automation honors awards!

We’d like to thank you for your continued support and participation, and urge you to hurry and vote.

Make you voice count! 


Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: Data autopopulation - Any easy method available to check?    (Read 691 times)
Yograj Kulkarni
User
*
Offline Offline

Posts: 2


« on: January 15, 2008, 01:30:48 AM »

Hi Dani,

In case of checking the correct data autopopulation, kindly observe the below scenario:
Suppose there two pages, Create Candidate and Edit Candidate page, if I have to check whether the candidate name is correctly getting saved/updated, I am storing the value of Candidate Name from Create page to one variable, then again saving the value of Candidate name from Edit candidate page into another variable then comparing those variables. In case the values are same, the result that the value is correctly getting autosaved/autopopulated on the Edit candidate page.

As you can see, the procedure is too long (it takes 6 to 8 lines of coding) and it is only for checking of one field value. For other fields it takes multiple time and lines of coding.
Is there any other way to reduce this time to check whether correct data is getting autopopulated or not.
Kindly, guide me.

Regards,
Yograj
Logged
Paul Grossman
Moderator
Full User
*****
Offline Offline

Posts: 220


Certified Instructor, Automation Project Lead, Quality Center Installation and Customize, HP Universe and Mercury World Conference Track Speaker.


« Reply #1 on: January 22, 2008, 12:32:18 AM »

One approach would be to define an object definition and use it to get a collecton of matching objects from the page. Itterate through the collection and store the name of each object as a key in a Dictionary along with it's value. (See Dani's article on shared Dictionary objects) This can also be stored in an array or in the Global datatable.

Then navigate to the page for verification. Again using the object definition, get a collecton of matching objects from the page. Itterate through the collection using the name as the key and compare the dictionary value to the object's value.

Report should include differences in values, as well as unmatched objects in each page. Keep in mind that you will likely have to speak with the developers to ensure the naming properties of the objects on one page match their counterparts on the other.

Best regards,

Paul

Logged

Best Regards,
Paul M. Grossman
AdvancedQTP Forums Moderator
Yograj Kulkarni
User
*
Offline Offline

Posts: 2


« Reply #2 on: February 20, 2008, 09:38:33 AM »

Hi Paul,

Thanks for reply, but it is quite technical and was difficult to understand. My objective is just to compair two objects using either object reposotiory or any other option for the scenario mentioned above in my question.
Kindly explain by showing the actions like using "go to" keyword, so it will be easy to understand.

Also, I tried to find the "Dani's article on shared Dictionary objects" but unfortunately could not find the one.

Eagerly waiting for your reply.

Thanks & Regards,
Yograj Kulkarni
Logged
Pages: [1]   Go Up
Print
Jump to: