Forum Discussion
- shankar_rCommunity Hero
It is possible to run a test item multiple times using Count column, In your case, you want to run n times based on the last test item result.
rushikesh wrote:
....no of times depaning on value which i recieve from first test item.
How will receive from last test item? Project Variable/ Global Variable?
As of now, there is no possibility to run a test item based on any value expect the Count field with help of TestCompete infrastructure.
But this can handle within scripts.
- anupamchampatiFrequent Contributor
after receiving the value from first test item just try to update the Project.TestItems(TestCase).Count = (value)
- shankar_rCommunity Hero
anupamchampati Project.TestItems(TestCase).Count is read-only property you can't update at the run time.
- tristaanogreEsteemed Contributor
The answer... is yes... but not based upon the test item. What you will need to do is build the code that the test item refers to in order to have the loop by dynamic. As mentioned, the "Count" property of the test item is read-only at runtime so you will need to write a "For" loop in your keyword test or script code to handle this dynamically lengthed loop.
Related Content
- 3 years ago
- 3 years ago
Recent Discussions
- 7 hours ago