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

E2E test template #1

Merged
merged 12 commits into from Mar 13, 2018
Merged

E2E test template #1

merged 12 commits into from Mar 13, 2018

Conversation

wojta
Copy link
Contributor

@wojta wojta commented Mar 7, 2018

  • proof it runs on some initial test
  • add login test
  • add logout test

@wojta wojta requested a review from twnolan March 7, 2018 00:10
@wojta wojta changed the title E2E test template E2E test template [WIP] Mar 7, 2018
Copy link

@wei-lee wei-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@twnolan twnolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the comments I have made this code looks good to me.

However the test has failed due to missing file which is in mentioned in .gitignore:

/home/thnolan/feedhenry/aerogear-sdk-e2e-tests/local.properties

Details of how to create this file and example file need to be placed in README.md

/**
* Chrome intro screen that pops up on Android.
*/
interface ChromeIntroScreen : PageObject {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is possible to set the chromeOptions when starting a test and disable things such as the welcome page, setting chrome as default pop up, cert errors etc. This would be much more preferable than trying to create our own classes to control the logic required to handle all of the possible problems.

https://github.com/twnolan/appium-experimentation/blob/master/test/login-logout.spec.js#L20 - this is how to disable some of these in javascript

https://appium.io/docs/en/writing-running-appium/caps/ - this has all the information on desired capabilities for appium, and some information on android and ios only capabilities regarding chrome and safari options

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I wasn't aware of that.

$ ./gradlew test
```

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should also be a section on an example of creating a test, or link to the library documentation for making a test as this is a non-standard library.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's right. It should be.

@wojta wojta changed the title E2E test template [WIP] E2E test template Mar 12, 2018
@wojta
Copy link
Contributor Author

wojta commented Mar 12, 2018

finalized changes @twnolan, please approve if it's ok

@wojta
Copy link
Contributor Author

wojta commented Mar 12, 2018

sorry, forgot that local.properties

Copy link

@twnolan twnolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now.

@wojta wojta merged commit 758b7dc into aerogear:master Mar 13, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants