01-03-2011, 10:51 AM
Hello! I am very new to QTP (using QTP 10) and am attempting to figure out the best way to run hundreds of tests on multiple versions of IE. Has anyone done something similar that could offer any advice? I have spent a lot of time reading on this forum, taking online courses, etc., but just haven't found what I'm looking for exactly. Here is where I am currently:
1. I have created a shared object repository that contains the objects for each version of IE that we are testing (IE6, IE7 and IE8).
2. I have created reusable actions for the tests that I need to run. Examples of the kinds of test I'm creating include, searching for SKU's, verifying pricing, clicking links, logging in, etc.
3. I have associated my shared repository with the reusable actions.
4. The reusable actions contain conditional statements - I am using GetROProperty to find the browser version, and then continue with the test logic based on what browser I am in.
I go through this entire process, and when I run the tests I run into the problem where my test doesn't recognize my objects. I have associated my global repository to the general test as well.
For troubleshooting purposes, I created a new shared object repository with just a few objects for IE8. I then associated it with a new test without all the conditional statements (just using IE8) and it wouldn't find the object again.
I have followed the instructions to create and associate a shared repository, so I do believe I am doing this correctly. Anyone else have this challenge? Does it seem like I am on the right track with what I need to accomplish?
I appreciate the help!
Becky
1. I have created a shared object repository that contains the objects for each version of IE that we are testing (IE6, IE7 and IE8).
2. I have created reusable actions for the tests that I need to run. Examples of the kinds of test I'm creating include, searching for SKU's, verifying pricing, clicking links, logging in, etc.
3. I have associated my shared repository with the reusable actions.
4. The reusable actions contain conditional statements - I am using GetROProperty to find the browser version, and then continue with the test logic based on what browser I am in.
I go through this entire process, and when I run the tests I run into the problem where my test doesn't recognize my objects. I have associated my global repository to the general test as well.
For troubleshooting purposes, I created a new shared object repository with just a few objects for IE8. I then associated it with a new test without all the conditional statements (just using IE8) and it wouldn't find the object again.
I have followed the instructions to create and associate a shared repository, so I do believe I am doing this correctly. Anyone else have this challenge? Does it seem like I am on the right track with what I need to accomplish?
I appreciate the help!
Becky