Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Multiple User credentials when tests in parallel #66

Closed
vikramvi opened this issue May 25, 2016 · 10 comments
Closed

Handling Multiple User credentials when tests in parallel #66

vikramvi opened this issue May 25, 2016 · 10 comments

Comments

@vikramvi
Copy link

@saikrishna321 can you please clarify parallel execution approach in app like gmail , where I launch browser on each of the devices with same id and do actions like creating mail , deleting etc.

how do you make sure each of the action is thread safe and don't mingle with others

Thanks in advance.

@saikrishna321
Copy link
Member

@vikramvi TestNG does take care of the parallel thread thingy and i'm bit scared when the tests run with the same user-id. For example (Grocery app)

When your running your tests across 2 devices and Test1 does adding something to item to cart and Test2 is removing item from cart, in this case there are high chances where the tests would fail and would be flaky .. I would look for having different user credentials for number of threads ...

@vikramvi
Copy link
Author

exactly , only solution is using different id for each of the threads.
Did you try this approach in your project ? I'm also trying to find a solution for this.

Thanks,
Vikram

@SrinivasanTarget
Copy link
Member

We will look into this asap... anyways nice question.
On 25-May-2016 8:55 PM, "Vikram Ingleshwar" notifications@github.com
wrote:

exactly , only solution is using different id for each of the threads.
Did you try this approach in your project ? I'm also trying to find a
solution for this.

Thanks,
Vikram


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#66 (comment)

@saikrishna321
Copy link
Member

@vikramvi haven't tried in ma project but its good to have feature...

@vikramvi
Copy link
Author

Thanks guys @SrinivasanTarget @saikrishna321 , I thought of one option is using unique user id & pwd for each of the classes. ( provided each class runs on individual thread )

If someone wants to run test cases in single class in parallel model then it's still open question. Please let me know if I could of any help in resolving this query

Regards,
Vikram

@saikrishna321 saikrishna321 changed the title Query: handling parallel execution on app like gmail Handling Multiple User credentials when tests in parallel May 28, 2016
@saikrishna321
Copy link
Member

@vikramvi does this looks good ?

@vikramvi
Copy link
Author

This is awesome , thanks a ton for quick fix. You should address this issue and solution during seleconf presentation.

@saikrishna321
Copy link
Member

@vikramvi thanks buddy for reporting this ..... we proposed but couldn't get a slot ..

@vikramvi
Copy link
Author

Thats sad to hear, may be you can update on discuss.appium.io and can put this into commercial use through https://testobject.com/blog/2016/05/testobject-box-your-smart-in-house-mobile-test-lab.html just IMHO. Can be useful to hundreds of companies

@saikrishna321
Copy link
Member

@vikramvi sure will do that buddy.. i already have it on discuss.io
https://discuss.appium.io/t/android-java-client-solution-trigger-test-in-parallel-without-using-grid/7078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants