Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run 3 of 5 actions in a test for all rows of test data
#1
Solved: 10 Years, 4 Weeks ago
Hi All,

I am new to UFt and am having a bit of a problem getting my head around the ability to run some but not all actions within a test, using tall the rows of test data imported at runtime into the Globals.

The basic structure of the test is as follows:

Test 1:
- Action 1: Retrieve test data (into Globals)
- Action 2: Start Browser and Log on to application
- Action 3: Enter test data onto Screen 1 and press submit
- Action 4: Enter test data onto Screen 2 and press Continue
- Action 5: On Screen 3 verify the results then navigate back to Screen 1
- Action 6: Log off and close the Browser

I want to run on all rows only for Actions 3, 4 and 5.

Looking at the Run on all rows details we can set Test 1 to Run on all rows so all actions will be run for each row of test data.

How can I set this up to just run on all rows of test data for the Actions 3, 4 and 5?

Thanks in advance for your help,
Mike
Reply
#2
Solved: 10 Years, 4 Weeks ago
Hi All,

No responses so far but I have come up with a workaround.

I have added two additional fields to the test data spreadsheet:
- Login
- Logout

Actions 1 (Retrieve test data) and 2 (Start Browser and Login) check the "Login" value and if set to "Y", the code is performed.

Action 6 (Log off and close the Browser) checks the "Logout" value and is set to "Y", the code is performed.

This allows Actions 1, 2 and 6's code to be run when required and Actions 3, 4 and 5 code will always be run for each row of test data.

Not sure is anyone will find this workaround helpful but it works for me.

Cheers,
Mike
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 925 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Multiple rows of test data Bhuvana 0 1,151 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Can we test Salesforce Standard form using QTP? yona34 0 943 05-22-2018, 10:57 AM
Last Post: yona34
  issue with IE when running test eiko 2 1,433 02-01-2018, 04:46 PM
Last Post: eiko
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,365 10-14-2016, 08:38 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)