https://github.com/acdh-oeaw/learn-mobile-testing
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Keywords
Repository
Basic Info
Statistics
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Mobile Testing Demo
This repository demonstrates the importance of mobile testing for web applications and provides an introduction to various testing methods.
Installation
- Clone the project:
sh git clone <repository-url> cd mobile-testing-demo - Install dependencies:
sh pnpm install - Start the development server:
sh pnpm run serve
Testing the Application
1. Testing on your own smartphone in the same network
- Find the IP address of your development server:
sh
ifconfig # or ipconfig on Windows
Look for your computer's local IP address (e.g., 192.168.0.10).
- Test on your smartphone:
Connect your smartphone to the same Wi-Fi network.
Open the browser on your smartphone and navigate to http://<your-ip>:8080.
2. Simulation and emulation
Chrome DevTools Device Mode
The DevTools in Chrome are probably well-known. They provide an easy simulation of various screen sizes and user agents which makes it easy to test responsive layouts without the need for additional software. However, they do not emulate real devices and their specific limitations.
Emulators
- Google's Android Emulator
- Genymotion (another Android Emulator)
- iPhone emulators are harder to find. If you are working on a Mac, you can use Xcode to simulate an iPhone or try QEMU
3. Testing with Browserstack
Browserstack is a cloud-based testing platform that allows you to test your web applications across a wide range of real devices and browsers. This ensures that your application works seamlessly for all users, regardless of the device or browser they use.
- Create a Browserstack account.
There is a free trial and also an option to apply for free unlimited access when you are working on Open Source projects.
- Open Browserstack Live
Select Live from the Dashboard and choose your desired device and browser (Note: Firefox does not seem to support local testing yet).
- Navigate to your website
Wait for the device to boot and navigate to your website using your local IP address 127.0.0.1.
- An Error 😨
Browserstack will display a notification and ask you to install their Local Desktop App. While running, the app sets up a tunnel from your PC to the remote device you are working on, allowing you to use your local IP address.
- You should now be able to open your Web App on the remote device.
4. Test automation with Browserstack
You can even combine Browserstack with Playwright tests and run them remotely on real devices. Regarding phones, iOS devices are currently not supported for automated tests, but Android deviced as well as Windows and Mac work fine.
This reposititory contains a small example test case. In order to run it, you will have to add your browserstack credentials to the browserstack.yml file or set them as local environment variables as described here. You can then run the tests using the command
sh
pnpm run test
The results are summarized under https://automate.browserstack.com/. There is even a short video for each test case on the corresponding device.
Owner
- Name: Austrian Centre for Digital Humanities & Cultural Heritage
- Login: acdh-oeaw
- Kind: organization
- Email: acdh@oeaw.ac.at
- Location: Vienna, Austria
- Website: https://www.oeaw.ac.at/acdh
- Repositories: 476
- Profile: https://github.com/acdh-oeaw
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 1168 dependencies
- @babel/core ^7.12.16 development
- @babel/eslint-parser ^7.12.16 development
- @playwright/test ^1.44.1 development
- @types/node ^20.14.5 development
- @vue/cli-plugin-babel ~5.0.0 development
- @vue/cli-plugin-eslint ~5.0.0 development
- @vue/cli-service ~5.0.0 development
- browserstack-node-sdk ^1.33.6 development
- eslint ^7.32.0 development
- eslint-plugin-vue ^8.0.3 development
- core-js ^3.8.3
- vue ^3.2.13
- 1169 dependencies