Hi Team,
I HaVe one Wookbook witH Multiple WorkSeet and TestCases Arrange in a linear format
I want to run multiple iteration but eVerytimes it jumps to a Row 2 before finisHing row1 for all.
Please suggest
THank you,
Sunny KHanpara
Run iteration one before jumping on row 2(DataDriVen)
Run iteration one before jumping on row 2(DataDriVen)
Last edited by skhanpara on Thu Nov 20, 2014 9:37 pm, edited 1 time in total.
Re: Run iteration one before jumping on row 2(DataDriVen)
What i want is
Complete Row1 for all the testcases and the row 2 for all and so on
Is there any settings that need to be done for this?
Thank you
Complete Row1 for all the testcases and the row 2 for all and so on
Is there any settings that need to be done for this?
Thank you
Re: Run iteration one before jumping on row 2(DataDriVen)
Put all of your test cases inside another "Wrapper" test case and set the data connector to be on the wrapper instead of individual test cases.
So, instead of:
TC1 -> Data1
TC2 -> Data1
TC3 -> Data1
You have:
TC_WRAPPER -> Data1
----TC1
----TC2
----TC3
All test cases have access to all data connectors of all parents, so TC1, TC2 and TC3 will still be able to see Data1 because it is linked to their parent, TC_WRAPPER.
So, instead of:
TC1 -> Data1
TC2 -> Data1
TC3 -> Data1
You have:
TC_WRAPPER -> Data1
----TC1
----TC2
----TC3
All test cases have access to all data connectors of all parents, so TC1, TC2 and TC3 will still be able to see Data1 because it is linked to their parent, TC_WRAPPER.
Shortcuts usually aren't...
Re: Run iteration one before jumping on row 2(DataDriVen)
Currently, i am using nessted TC to do so but it does not reflect good on reports
i was thinking if you go a better way or setting where we can just define to run one iteration per TC in one flow
Thank you
i was thinking if you go a better way or setting where we can just define to run one iteration per TC in one flow
Thank you
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run iteration one before jumping on row 2(DataDriVen)
Hello skhanpara,
Unfortunately, there is currently no other approach in order to run only a single iteration of a TestCase. The mentioned nested TestCase is the preferable way to depict such a scenario.
Regards,
Robert
Unfortunately, there is currently no other approach in order to run only a single iteration of a TestCase. The mentioned nested TestCase is the preferable way to depict such a scenario.
Regards,
Robert
Re: Run iteration one before jumping on row 2(DataDriVen)
I try to nest all test cases and then copying all the recording in the last TC and was trying to run two iteration
But it started to Nest out Runing two iteration each test case
Pleas check the image
Please Suggest and its urgent so ASAP.
Thank you
Skhanapara
But it started to Nest out Runing two iteration each test case
Pleas check the image
Please Suggest and its urgent so ASAP.
Thank you
Skhanapara
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run iteration one before jumping on row 2(DataDriVen)
Hello skhanpara,
Unfortunately, we are not exactly sure how your test behavior/structure should look like. May I ask you to explain it in more detail?
Additionally, we highly recommend re-designing your test structure since it seems to be very difficult to understand. In general, the structure of your test should be kept as simple as possible.
Regards,
Robert
Unfortunately, we are not exactly sure how your test behavior/structure should look like. May I ask you to explain it in more detail?
Additionally, we highly recommend re-designing your test structure since it seems to be very difficult to understand. In general, the structure of your test should be kept as simple as possible.
Regards,
Robert
Re: Run iteration one before jumping on row 2(DataDriVen)
Hello,
Thanks for your reply
I have to build a report structure that is understandable.
So before this i build the TC Structure as follows
- One testcase per webPage(One excel sheet for entire script -> one worksheet per webpage).
There is lot of data Driven field so i need to divide it across worksheet.
There are 3 Environments to be tested: QA, Dev And ST which is running good
Scripts are working fine
Problem with the Script
- Run multiple iteration
Data is provide in the excel sheet but i run one TC multiple time before jumping to next TC
For Example: 1st TC is Login -> Datasheet provides 10 Login IDs in 10 Rows -> it will run Login for 10 times
What I want
- Run one iteration from each row of the worksheet before jumping to next one.
Thank you,
Sunny Khanpara
Thanks for your reply
I have to build a report structure that is understandable.
So before this i build the TC Structure as follows
- One testcase per webPage(One excel sheet for entire script -> one worksheet per webpage).
There is lot of data Driven field so i need to divide it across worksheet.
There are 3 Environments to be tested: QA, Dev And ST which is running good
Scripts are working fine
Problem with the Script
- Run multiple iteration
Data is provide in the excel sheet but i run one TC multiple time before jumping to next TC
For Example: 1st TC is Login -> Datasheet provides 10 Login IDs in 10 Rows -> it will run Login for 10 times
What I want
- Run one iteration from each row of the worksheet before jumping to next one.
Thank you,
Sunny Khanpara
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run iteration one before jumping on row 2(DataDriVen)
Hello skhanpara,
Thank you for the clarification.
The best way to achieve the mentioned behavior is to use a parent testcase (wrapper testcase) as above-mentioned from krstcs.
Regards,
Robert
Thank you for the clarification.
The best way to achieve the mentioned behavior is to use a parent testcase (wrapper testcase) as above-mentioned from krstcs.
Regards,
Robert
Re: Run iteration one before jumping on row 2(DataDriVen)
I am not able to do it
I did want he said create a Master TC
Master TC(bounded 1 Variable eg:- ename)
---> TC1(ename)
---> TC2(ename)
---> TC3(ename)
but as soon as it reaches TC1 it loops int to iteration 2 for TC1 before jumping to TC2
Thank you,
Skhanpara
I did want he said create a Master TC
Master TC(bounded 1 Variable eg:- ename)
---> TC1(ename)
---> TC2(ename)
---> TC3(ename)
but as soon as it reaches TC1 it loops int to iteration 2 for TC1 before jumping to TC2
Thank you,
Skhanpara
Re: Run iteration one before jumping on row 2(DataDriVen)
Could you post an example that shows what you are actually doing in the test case?
It sounds like you are trying to bind data in both the MasterTC and the Child Test case, which will not work the way you want.
Ranorex loops each test case and all of its children (test cases and modules) over again for each record in the bound data set.
If you have:
Then TC1 will loop 3 times, TC2 will run 15 times total (5 times inside each TC1 loop) and TC3 will run 3 times total (1 time inside each TC1 loop).
It sounds like you are trying to bind data in both the MasterTC and the Child Test case, which will not work the way you want.
Ranorex loops each test case and all of its children (test cases and modules) over again for each record in the bound data set.
If you have:
Code: Select all
TC1 -> 3 rows
TC2 -> 5 rows
TC3 -> 1 row
Shortcuts usually aren't...
Re: Run iteration one before jumping on row 2(DataDriVen)
Yes, that's whats going wrong.
I want to run one row each TC. I have tried all variation.
I have attached a Excel sheet which i am using to run the test Script.
Please take a look, it will give you a idea what i want to do.
Each worksheet is a new webpage/ TC.
For example: Login(Worksheet1) -> Followed by Search(Worksheet2)-> and so on,
Its a Policy creation Script and i cant include everything in one worksheet
What should i do to Create Multiple policy
Please Suggest:- It kind of Urgent so early respond will be Appreciated.
Thank you
Sunny Khanpara
I want to run one row each TC. I have tried all variation.
I have attached a Excel sheet which i am using to run the test Script.
Please take a look, it will give you a idea what i want to do.
Each worksheet is a new webpage/ TC.
For example: Login(Worksheet1) -> Followed by Search(Worksheet2)-> and so on,
Its a Policy creation Script and i cant include everything in one worksheet
What should i do to Create Multiple policy
Please Suggest:- It kind of Urgent so early respond will be Appreciated.
Thank you
Sunny Khanpara
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run iteration one before jumping on row 2(DataDriVen)
Hello skhanpara,
As far as I understood your request correctly, you want to have a DataConnector with several rows for each TestCase. Only one iteration of each TestCase should be executed before continuing the iteration of all TestCases with the next row of their DataConnectors.
This is not possible. Each TestCase is designed to run all specified rows from the corresponding DataConnector.
Regards,
Robert
As far as I understood your request correctly, you want to have a DataConnector with several rows for each TestCase. Only one iteration of each TestCase should be executed before continuing the iteration of all TestCases with the next row of their DataConnectors.
This is not possible. Each TestCase is designed to run all specified rows from the corresponding DataConnector.
Regards,
Robert