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

chore: add pushing and installation profiling logic #1027

Merged
merged 5 commits into from
Aug 5, 2019

Conversation

umutuzgur
Copy link
Member

No description provided.

try {
const bundlePathOnPhone = await this.pushAppBundle(app);
await this.installApplcation(bundlePathOnPhone);
log.info(`Installation is successful after ${new Date() - start}ms`);
Copy link
Contributor

Choose a reason for hiding this comment

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

I usually prefer to use process.hrtime for performance measurement

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't know if the installation is successful, since this.installApplcation (btw there is a type in the method name) continues even after a timeout happens

Copy link
Member Author

Choose a reason for hiding this comment

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

That is successful for us. The phones are something flaky and don't notify you back this happens really rarely so I let that slide and call it also successful

lib/ios-deploy.js Outdated Show resolved Hide resolved
lib/ios-deploy.js Outdated Show resolved Hide resolved
@umutuzgur umutuzgur merged commit 4421c0b into master Aug 5, 2019
@umutuzgur umutuzgur deleted the profile_installation branch August 5, 2019 14:44
try {
const bundlePathOnPhone = await this.pushAppBundle(app);
await this.installApplcation(bundlePathOnPhone);
await this.installApplication(bundlePathOnPhone);
log.info(`Installation is successful after ${new Date() - start}ms`);
Copy link
Member

Choose a reason for hiding this comment

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

we already have a metrics tracking system, so you don't have to do this manually. see BaseDriver::logEvent. You could log an install start and install finish event.

khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
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