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

How to use priority in test cases? #12

Open
sapins opened this issue Oct 11, 2017 · 4 comments
Open

How to use priority in test cases? #12

sapins opened this issue Oct 11, 2017 · 4 comments

Comments

@sapins
Copy link

sapins commented Oct 11, 2017

Can we use priority in our test cases?
I am executing test cases on AWS device farm, in my local system it’s working fine. However, on device farm it’s not working as per given priority.

Can we handle test case execution using testng.xml file on AWS device farm?

@jamesknowsbest
Copy link

Hi,
I just submitted a pull request showing how to include a testng.xml file.
#13

Hope that helps

@sapins
Copy link
Author

sapins commented Dec 20, 2017

Hi James,

We can can control the text class order from testng.xml as you described in #13. However, how can we control the @test methods execution order inside class?

Ex: If we automate facebook app, do we need to login into application for each test case as AWS Device Farm executes each @test method individually, each one using a fresh instance of the Appium server.

@pathikb
Copy link

pathikb commented Jan 24, 2018

Does anyone know the answer to this? AWS Device Farm seems to ignore the "priority" set for the test methods within a class and executes them randomly.

@jamesknowsbest
Copy link

@pathikb I just made a comment on this other issue where I explain how to run a test from other tests. Executing the tests this way it appears that priority works.

#15

However, you need to record the test results yourself and there will only be one video for all the tests.

HTH
James

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