Forum Discussion
Hi dikshika114
Hope you are well.
Data driven loops will run the sessions in parallel but use the same data.
To best ensure each session use different data then I would recommend maybe using parameters or even a table variable in TestComplete.
This may involve some duplication as each test will need to reference a different table variable.
The great thing about parameters is that they can be called on execution(say your parallel execution group) or parsed into a test however Parameters are configured in TestComplete rather than an excel value.
See here for more information
https://support.smartbear.com/testcomplete/docs/testing-with/running/tips/test-run-parameters.html
Hope that helps
Vincent
- mattb4 years agoStaff
Hi,
Like Vincent said you could do this through Data driven testing, I think it would be easiest through a TestComplete table variable, where you can use the data generator to generate dynamic data. https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/generators/index.html- dikshika1144 years agoContributor
I have lot of values that i saves uniquely in the system. So, i just want to specify these values at one place that could easily be changed before start execution like in excel file.
Unable to understand the way, how it can be called differently while Parallel execution with CBT. (I have configured the Browser and Platforms in Execution Plan Like shown in Screenshot)
Please explain the way somewhat deeply. How can i do that. Because i have no idea about that.
Attaching the screenshot of my excel file also where data is separated with test case and the field names which i want to change for every browser which are running parallelly.
Please provide a straight away sample script to achieve that.
Thanks
- vinniew4 years agoStaff
Hi dikshika114
Can I ask what is the significance of using different data in each parallel session?
How does that affect your approach to functional testing?
If it is an absolute requirement, I would recommend the following:
- Create 4 table variables using the structures you have referenced in excel.
You will need to manually create 4 variables, with each type as table
https://support.smartbear.com/testcomplete/docs/testing-with/variables/index.html
- Create 4 of the same tests but with a different name and put them into the parallel group
-Each test will refer to a different table variable on execution in CBT
As I have mentioned already, this approach requires some more maintenance however if its required then this will achieve it for you.
KR
Vincent
Related Content
- 4 years ago
Recent Discussions
- 3 hours ago
- 4 days ago