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

[Enhancement] Sample Xamarin/MAUI application for Xappium testing #21

Open
ThinhTranA opened this issue Aug 27, 2021 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@ThinhTranA
Copy link

Summary

I find it really useful to have app package (*.apk & *.ipa) readily available to download when start to learn writing UI test or a demo.

I've had some success using Xappium for the following sample guinea pig apps. I think it would be nice if we have sample app written in Xamarin/MAUI

SauceLab:
https://github.com/saucelabs/sample-app-mobile

WebDriverIO
https://github.com/webdriverio/native-demo-app

@ThinhTranA ThinhTranA added the enhancement New feature or request label Aug 27, 2021
@adamhill
Copy link

Could you share your experimentations?

I am am about to get the opportunity to greenfield a MAUI app from a large existing Xamarin Forms app and would like to see some more Xappium examples.

@ThinhTranA
Copy link
Author

@adamhill
I have written a blog post for this
https://mauicoder.com/xappium-for-android-testing-part-1-setup/

@dansiegel
Copy link
Collaborator

@ThinhTranA if you'd like to help out I'd love to take some PR's on some updated samples and help with the docs :)

@dansiegel
Copy link
Collaborator

also @ThinhTranA was just noticing on your blog you should update the following snippet...

<ItemGroup>
  <None Remove="uitest.json" />
  <EmbeddedResource Include="uitest.json">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  </EmbeddedResource>
</ItemGroup>

By default Xappium will look for the uitest.json in the directory of the test project, and it will fall back to looking for an embedded resource. So you either want:

<ItemGroup>
  <None Include="uitest.json">
    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  </None>
</ItemGroup>

Or you want:

<ItemGroup>
    <None Remove="uitest.json" />
    <EmbeddedResource Include="uitest.json" />
</ItemGroup>

@ThinhTranA
Copy link
Author

ThinhTranA commented Sep 16, 2021

@dansiegel , yes I would love to help PR with the docs and sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants