-
Notifications
You must be signed in to change notification settings - Fork 94
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
add UI test for select tag in webview #179
base: development
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? Also need an authorization to run tests. |
@linl33 can you please review this PR |
runtests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure the PR compile against the build variant snapshotUiTestDebug.
int numOfMsToSleep = 0; | ||
for (int i = 0; i < numOfTimesToRun; i++) { | ||
boolean found = false; | ||
Atom<ElementReference> elementFound = findElement(DriverAtoms.findElement(Locator.SELECT, "select")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first findElement uses your static import the second one is missing an import statement so it won't compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also Locator.SELECT is not resolving
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have resolved the errors and compiled it against build variant snapshotUiTestDebug
@wbrunette can you please guide me on how to do it. |
Check out this PR odk-x/docs#77 that is in-progress to improve the instructions on how to change the build variant. |
@wbrunette thanks, It cleared my doubt. |
@wbrunette please review it I have made the requested changes |
Have you run it to verify you test does what you think it does? To run the UI tests you must have a development version (compiled by you and installed on the device or emulator) of Services and Survey. Then you need to do a "grunt adbpush" of app-designer to setup everything correctly. Also you need OI File manager installed. |
@starboi02 Your changes should also include an HTML component to test |
Ok @linl33 I will add that and component and recreate the crash with androidcommon version specified by you. |
Ok @wbrunette I will run it with the correct androidcommon version. |
@starboi02 any update on this PR? |
@wbrunette sorry for the delay I got infected with covid-19 so could not contribute for a time period. I will try to complete it in a day or two. |
@starboi02 no worries. I am was simply going through all the PRs to make sure that PRs were not waiting on review. Hope you recovery from COVID-19 is going well. No need to rush, you can take your time. |
Fixes #209
Added UI test for select tag in webview