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

Addition to the #579 #585

Merged
merged 3 commits into from
Feb 28, 2017
Merged

Addition to the #579 #585

merged 3 commits into from
Feb 28, 2017

Conversation

TikhomirovSergey
Copy link
Contributor

Change list

The chaining of the activity parameter setting.

Types of changes

What types of changes are you proposing/introducing to Java client?

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

The chaining of the activity parameter setting.
@TikhomirovSergey
Copy link
Contributor Author

@email2vimalraj You could review it too.

driver.startActivity(activity);
return true;
}).test(driver));

Copy link
Contributor

Choose a reason for hiding this comment

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

extra line here

@SrinivasanTarget
Copy link
Member

Nice Idea @TikhomirovSergey

activity.setIntentFlags("0x4000000");
activity.setOptionalIntentArguments("-d \"TestIntent\" -t \"text/plain\"");
driver.startActivity(activity);
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

is the whole construction with assertTrue and return true really necessary?

Copy link
Contributor Author

@TikhomirovSergey TikhomirovSergey Feb 26, 2017

Choose a reason for hiding this comment

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

@mykola-mokhnach
Yes. It is for codecy checkings. It requires assertions. Also I have an opinion that assertions inside tests methods is the good style.

@TikhomirovSergey
Copy link
Contributor Author

@SrinivasanTarget @mykola-mokhnach I will fix the issue later.

@email2vimalraj
Copy link
Contributor

@TikhomirovSergey : Good idea.

Kindly update the The-starting-of-an-Android-app.md file and the javadoc on the StartsActivity.java interface.

@TikhomirovSergey TikhomirovSergey merged commit b9ef941 into appium:master Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants