| || |
Scheduling, running parameterization without stoppage
I have a new challenge to implement. I need to understand your approach for below challenge. Once, I understand your approach, I can really dig into issues and try to bring the solution.
I had total three functionalities to automate as shown below in chronological order
1. Claimant Registration - Claimant is getting registered
2. Resume Builder - Claimant creates online Resume - Prerequisite is Claimant Registration (Step 1) should have been completed
3. Initial File Claim - Claimant files initial Claim - Prerequisite is Claimant Registration (Step 1) and Resume Builder (Step 2) should have been completed in chronological order.
So basically an end-to-end test would be
Claimant gets registered first. With help of newly created user name and password, claimant creates an online Resume. After creating Resume, claimant files the initial claim.
Assumption - scripts are running in night time or tester is NOT available to monitor
What I need is -
1. I want to run step 1-3 as a single script
Q1 - Do I have to write functions in notepad for that to call script one by one?
2. My each script has been parameterized. The usual problem I am encountering is sometimes it does not identify the object due Sync problem.
Now what I am trying to figure out is - For eg, if I have 20 sets of test data (username1, username2,.....username3) and while running this script, if I encountered problem at Username10, qtp should skip that particular testdata (username10) and start executing username11. So that the process is not stuck due to such minor issues
3. How do I get reporting that qtp encountered issues during this particular Test Data
Again, I am very thankful to all of you for your continuous effort and suggestion.
Thank you friends.
1 - Put your 3 scripts in separate function and call from UFT.
2 - Create a recovery scenario that OK's the error popup, navigates to logon screen and performs ExitActionIteration
3 - Add a reporter statement to the recovery scenario
Originally Posted by mwsrosso
This is exactly what I needed. Thank you very much for being a consistent mentor. I would dig in and soon share my results and challenges.
Originally Posted by mwsrosso
It looks like it would not be possible for me to Run all three scripts in a one go (i.e. at a time performing registration, creating resume and finally claim filing)
For eg, if I have to create 20 test data. I have to do following.
1. Complete Claimant Registration for 20 different persons
2. Complete creating resumes for those 20 persons
3. Complete filing claims for those 20 persons.
Following is my rough plan. Please note that following scripts are individual script i.e. not in one script
Last edited by JwalantBhatt0602; 03-08-2016 at 07:53 AM.
So basically I am planning to do following
1. I am assigning function to each of my existing script (Script 1, Script 2, Script 3)
2. Calling them from UFT ( I still have to figure out how though)
3. Creating a recovery scenario
4. Adding a reporter statement to recovery scenario
I am not very sure if I have to create a driver script then associate all resources of my existing script to it and then run driver script. So that it calls required script.
I am sorry, I just wanted to make sure if I understood. As we dig in, more questions come onto the surface. So please bare with me.
Last edited by JwalantBhatt0602; 03-08-2016 at 07:59 AM.
So, are you using the native iteration system (datatables, one row = an iteration) ? Or are you manually controlling your iterations (manually as in you include commands to change datatable rows on your own)... Based on your last post, it sounds like you're manually looping through your iterations.
So, here's how I would approach this challenge.
1) analyze data needed in datasheet - do I want one sheet with each row including data for registration, resume, and claim? or do I want three separate sheets? Based on what you've described, it sounds like it would be ideal to use a single sheet (one excel tab) with as many columns as it would take to get each iteration onto one row.
2) I would create 1 test with 3 actions (or more..) and set each action to run all iterations (not at the test level, that would be 1 iteration only) (if this were any more complex, I would use manual iteration control instead)
3) collect objects into OR as needed. record steps for each action. then parameterize the recording using fields from the sheet I designed. Each action starts with a check in datatable for "failed" column, and if found to be true, abort this iteration.
4) After Each interaction with AUT, confirm expected. IF I encounter a failure during iteration, I would update the datatable to mark that iteration "failed" so that phase 2 and 3 will skip. (I usually use a "ScenarioProgress" marker that I update at every irreversible step, especially if failure to complete that step makes future steps impossible)
5) include a "Finish Test" action that cleans up, generates any external reporting needed, and uploads reports if needed.
I would not include a recovery scenario unless the code can't test for the error. I would include if the error is unpredictable.