How to check for multiple repo items in parallel
Posted: Thu Jul 13, 2017 6:11 pm
Hi everyone,
Is there a way to check the existence of multiple repo items in parallel?
I want to write a script that returns to a default location in a mobile app. I wanted this to be a general purpose script to put in the tear down of each test case. I know I can check for one item and them perform some action. Then repeat this process going through various scenarios with different repo items. But, this adds a lot of wait time.
I was thinking something a long the line of this:
For course, only one of those repo Item would exists at a time.
I want to avoid this:
If repoItem3 exists, I would have to wait for the search timeouts for repoItem1 and repoItem2 before getting to that point.
Thanks in advance.
Is there a way to check the existence of multiple repo items in parallel?
I want to write a script that returns to a default location in a mobile app. I wanted this to be a general purpose script to put in the tear down of each test case. I know I can check for one item and them perform some action. Then repeat this process going through various scenarios with different repo items. But, this adds a lot of wait time.
I was thinking something a long the line of this:
Code: Select all
repoItemThatExists = ReturnTheRepoItemThatExists(repoItem1, repoItem2, repoItem3);
case (repoItemThatExists)
repoItem1:
Do something
repoItem2:
Do something else
repoItem3:
Do magical things
I want to avoid this:
Code: Select all
if (repoItem1.Exists())
{
Do something
}
if (repoItem2.Exists())
{
Do something else
}
if (repoItem3.Exists())
{
Do magical things
}
Thanks in advance.