Skip to content

feat: Support log commands#309

Merged
mykola-mokhnach merged 3 commits intoappium:masterfrom
kkb912002:feature/support-log-commands
Apr 25, 2025
Merged

feat: Support log commands#309
mykola-mokhnach merged 3 commits intoappium:masterfrom
kkb912002:feature/support-log-commands

Conversation

@kkb912002
Copy link
Copy Markdown

Codes from android(uiautomator2) and xcuitest drivers.
only support 'server' type.

Server logs are being handled in the same way even if the drivers are different. Wouldn't it be possible to change the way they are processed to a method like the one used by the context API in plugins? For example, by consolidating the logs in the base driver's getLogTypes method with a structure like ['server', ...pluginResults, ...driverResults], server log handling could be done in one place within the base driver's getLogTypes and getLog methods.

Comment thread test/e2e/commands/log-e2e-specs.js Outdated
});

it('should throw an error when an invalid type is given', async function () {
await driver.getLogs('INVALID_LOG_TYPE').should.rejected;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should.be.rejected

Comment thread lib/commands/log.ts Outdated
@@ -0,0 +1,39 @@
import _ from 'lodash';
import { WindowsDriver } from '../driver';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

consider using import type if an identifier is only used for type declarations

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

thank you.

@mykola-mokhnach mykola-mokhnach merged commit b96b4b5 into appium:master Apr 25, 2025
7 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 25, 2025
## [4.4.0](v4.3.1...v4.4.0) (2025-04-25)

### Features

* Support log commands ([#309](#309)) ([b96b4b5](b96b4b5))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 4.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mykola-mokhnach
Copy link
Copy Markdown

Thank you @kkb912002

Perhaps you'd also be interested in https://www.youtube.com/watch?v=mieajcgUn-k

@kkb912002
Copy link
Copy Markdown
Author

Thank you @kkb912002

Perhaps you'd also be interested in https://www.youtube.com/watch?v=mieajcgUn-k

Awesome 😮

@KazuCocoa KazuCocoa added size:M contribution size: M size:S contribution size: S and removed size:M contribution size: M labels May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released size:S contribution size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants