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

 
Advanced search

18120 Posts in 4741 Topics- by 31743 Members - Latest Member: suuraj
 

Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: Running the same script on multiple machines    (Read 3829 times)
mike gregg
User
*
Offline Offline

Posts: 35


« on: February 04, 2010, 08:32:49 AM »

I am running QTP 10 in a virtual lab of 5 virtual machines. I have a script that includes three actions.

An Init action that sets some parameters and some global variables
A Regression action that is primarily function driven
A Close action that shuts things down and posts metrics.

The init action will post a start time and a  results file name to an Init data sheet, all of the data to drive the regression script is in a "Regression" sheet. I have a Close datasheet and a Global data sheet included but these are not used in test execution.

If I have a copy of the script running on machine QTP001 and then open the script on QTP002 it will only open read only. I can get two scripts executing at the same time but it requires a bit of manipulation and is not a realistic solution based on the way my QA Team executes testing.

What I am trying to do is run this script on multiple machines with the only difference being the datasheet being assigned and executed.

We are converting from Winrunner to QTP and I can run multiple machines in the WR world. So, I am hopeful this can be done.

Does anyone have any thoughts or experience with this?

Thanks for your help
 
Logged
Robinhang
User
*
Offline Offline

Posts: 2


« Reply #1 on: February 08, 2010, 01:50:21 AM »

"If I have a copy of the script running on machine QTP001 and then open the script on QTP002 it will only open read only."
Sorry, do you mean two PC(QTP001 and QTP002) are run two copyies of script?
Logged
mike gregg
User
*
Offline Offline

Posts: 35


« Reply #2 on: February 10, 2010, 08:14:20 AM »

To clarify,

I have a script called Regression located in a network directory. I open the script on machine QTP001 and execute the script.

I then open the same script on machine QTP002. At that point I get a read only copy.

I am hoping to be able to run the same script. From the network location on multiple machines. The only difference would be the datatable assigned to the script.

We can do this with WinRunner.

Logged
Nitya Sri K
Sr. User
****
Offline Offline

Posts: 313


« Reply #3 on: February 10, 2010, 10:41:50 PM »

Do you have very large number of scripts and data in the common newtork path

Would it be not good if you copy to the local VM and run,in that case there would be a clear demarcation

We were doing same with WR on multiple VMS


Thanks,


Logged
abhishek asthana
User
*
Offline Offline

Posts: 25


« Reply #4 on: March 25, 2010, 07:34:19 PM »

It is true that if you open the same script in multiple machines then all scripts except the one open first will be read only and we will not be able to add the datasheet, etc to the read only scripts. Only the first open script can be modified and run with different datasheets.

I am also in a similar situation, and the solution till i came along was to make as many copies of the script as the machines we want to run on. I am still working on the solution for this problem. My solution is to ask the user to choose the environment file and the datasheet to be imported at runtime.

It is my belief that i will now be able to load the same script in multiple machines and just run them....the scripts will still be read only but because i import the datasheet and environment file at runtime, i should not have any problems.

I can share my code with you if you want to try it yourself....

Thanks.

-Abhishek
Logged
mike gregg
User
*
Offline Offline

Posts: 35


« Reply #5 on: April 20, 2010, 09:02:09 AM »

I came to a similar conclusion and I have created a QTP_Local folder on the C:\ drive of each lab machine.

I get testdata, obj repository info, function calls and post results to a network directory. Using the network was important to me for two reasons.

First, since my scripts are primarily function driven I can maintain them by updating a function library. This reduces the number of times I need to build and clone a VM base machine

Second, by posting results to the network I avoid the unpleasantness of having someone's results waiting on a machine that someone else is now using.

Thanks everyone for the feedback
Logged
Pages: [1]   Go Up
Print
Jump to: