Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running QTP Scripts on multiple SAP Test Environments
09-01-2009, 07:00 PM
Post: #1
Running QTP Scripts on multiple SAP Test Environments

We recently started to use QTP to automate our SAP test cases. Our company has a variety of custom SAP screens and transactions that need to be tested on a bi-monthly basis. We also use Quality Center to track testing. We have three different test environments:
1.) Training
2.) Development
3.) QA

Now for my question. Is there any way to have my QTP scripts run on a certain environment (server...Training, Dev & QA) so that I do not have to manually update my test script record & run settings prior to execution.

Currently before I run my test I need to log into QTP and change the Record & Run settings server to the environment being tested. This is cumbersome since we have nearly 150 separate test scripts.

Any help would be appreciated.
Find all posts by this user
Quote this message in a reply
09-01-2009, 07:03 PM
Post: #2
RE: Running QTP Scripts on multiple SAP Test Environments
(09-01-2009 07:00 PM)Newom85 Wrote:  We recently started to use QTP to automate our SAP test cases. Our company has a variety of custom SAP screens and transactions that need to be tested on a bi-monthly basis. We also use Quality Center to track testing. We have three different test environments:
1.) Training
2.) Development
3.) QA

Now for my question. Is there any way to have my QTP scripts run on a certain environment (server...Training, Dev & QA) so that I do not have to manually update my test script record & run settings prior to execution.

Currently before I run my test I need to log into QTP and change the Record & Run settings server to the environment being tested. This is cumbersome since we have nearly 150 separate test scripts.

Any help would be appreciated.

The above mentioned query can be resolved.

Two important notes,

1. Set the record and run settings to "Run on any open browser"
2. Research about QTP AOM.

Let me know if it helps !

Basanth
QTP On Unix- Java Way - Without Putty or Terminal Emulation
You have no idea how high I can fly...
Find all posts by this user
Quote this message in a reply
09-01-2009, 07:08 PM (This post was last modified: 09-01-2009 07:12 PM by Newom85.)
Post: #3
RE: Running QTP Scripts on multiple SAP Test Environments
(09-01-2009 07:03 PM)basanth27 Wrote:  
(09-01-2009 07:00 PM)Newom85 Wrote:  We recently started to use QTP to automate our SAP test cases. Our company has a variety of custom SAP screens and transactions that need to be tested on a bi-monthly basis. We also use Quality Center to track testing. We have three different test environments:
1.) Training
2.) Development
3.) QA

Now for my question. Is there any way to have my QTP scripts run on a certain environment (server...Training, Dev & QA) so that I do not have to manually update my test script record & run settings prior to execution.

Currently before I run my test I need to log into QTP and change the Record & Run settings server to the environment being tested. This is cumbersome since we have nearly 150 separate test scripts.

Any help would be appreciated.

The above mentioned query can be resolved.

Two important notes,

1. Set the record and run settings to "Run on any open browser"
2. Research about QTP AOM.

Let me know if it helps !

We had security problems with running on any open browser. Someone accidentally ran a test on a production system that created and posted invoices. We would not like to run on open browser if at all possible.
I will try AOM script.
Find all posts by this user
Quote this message in a reply
09-01-2009, 07:16 PM
Post: #4
RE: Running QTP Scripts on multiple SAP Test Environments
(09-01-2009 07:08 PM)Newom85 Wrote:  
(09-01-2009 07:03 PM)basanth27 Wrote:  
(09-01-2009 07:00 PM)Newom85 Wrote:  We recently started to use QTP to automate our SAP test cases. Our company has a variety of custom SAP screens and transactions that need to be tested on a bi-monthly basis. We also use Quality Center to track testing. We have three different test environments:
1.) Training
2.) Development
3.) QA

Now for my question. Is there any way to have my QTP scripts run on a certain environment (server...Training, Dev & QA) so that I do not have to manually update my test script record & run settings prior to execution.

Currently before I run my test I need to log into QTP and change the Record & Run settings server to the environment being tested. This is cumbersome since we have nearly 150 separate test scripts.

Any help would be appreciated.

The above mentioned query can be resolved.

Two important notes,

1. Set the record and run settings to "Run on any open browser"
2. Research about QTP AOM.

Let me know if it helps !

We had security problems with running on any open browser. Someone accidentally ran a test on a production system that created and posted invoices. We would not like to run on open browser if at all possible.
I will try AOM script.

Best Practice -
Close all the active Browsers. Open the browser you need and then pass the required Url.

Basanth
QTP On Unix- Java Way - Without Putty or Terminal Emulation
You have no idea how high I can fly...
Find all posts by this user
Quote this message in a reply
08-02-2010, 07:22 PM (This post was last modified: 08-02-2010 07:23 PM by lotos.)
Post: #5
RE: Running QTP Scripts on multiple SAP Test Environments
(09-01-2009 07:08 PM)Newom85 Wrote:  
(09-01-2009 07:03 PM)basanth27 Wrote:  
(09-01-2009 07:00 PM)Newom85 Wrote:  We recently started to use QTP to automate our SAP test cases. Our company has a variety of custom SAP screens and transactions that need to be tested on a bi-monthly basis. We also use Quality Center to track testing. We have three different test environments:
1.) Training
2.) Development
3.) QA

Now for my question. Is there any way to have my QTP scripts run on a certain environment (server...Training, Dev & QA) so that I do not have to manually update my test script record & run settings prior to execution.

Currently before I run my test I need to log into QTP and change the Record & Run settings server to the environment being tested. This is cumbersome since we have nearly 150 separate test scripts.

Any help would be appreciated.

The above mentioned query can be resolved.

Two important notes,

1. Set the record and run settings to "Run on any open browser"
2. Research about QTP AOM.

Let me know if it helps !

We had security problems with running on any open browser. Someone accidentally ran a test on a production system that created and posted invoices. We would not like to run on open browser if at all possible.
I will try AOM script.

A good way to not have problems with opened browsers, you can use Browser().Close method at the end of each test (or within the last action, last step), or you can write a function as next and use it where you'll need it:

Public Function CloseBrowser
Reporter.Filter = rfDisableAll
'closing the browser
If Browser("URL:=http://environment1/.*").Exist Then
Browser("URL:=http://environment1/.*").Close
End IF

If Browser("URL:=environment2/.*").Exist Then
Browser("URL:=environment2/.*").Close
End IF
Reporter.Filter = rfEnableAll
End Function

to call this function from the *.qfl file, use in you test next:
CloseBrowser 'that's it

it's working very good in all my tests..
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Use same QTP script for 2 different environments flexdev 1 366 Yesterday 09:44 AM
Last Post: sshukla12
  SAP testing automation with QTP hari 8 4,124 05-03-2012 12:03 AM
Last Post: srini3145
  "How to automate SAP Applications using QTP" suresz449 3 1,060 02-28-2012 06:46 PM
Last Post: manik16
  Automating SAP using QTP : Few Guidlines Ankesh 0 932 10-17-2011 04:47 PM
Last Post: Ankesh
  SAP - Loading ME21N with QTP Håkan 0 755 06-29-2011 01:47 PM
Last Post: Håkan

Forum Jump:


User(s) browsing this thread: 1 Guest(s)