me-io/appium-selenium-starter
Composer 安装命令:
composer create-project me-io/appium-selenium-starter
包简介
Simple and easy to use boilerplate for writing tests for mobile or web.
关键字:
README 文档
README
Appium Selenium Starter
Simple and easy to use boilerplate for writing tests for mobile or web.
Requirements
- PHP >= 7.0
- Appium - For Mobile Testing
- Selenium - For Web application testing
Installation
You can install this appium-selenium-starter using the following methods:
Cloning the repo
Run the following command to configure the boilerplate on your machine:
git clone git@github.com:me-io/appium-selenium-starter.git
Via composer create-project
Alternatively, you may also install appium-selenium-starter by issuing the Composer create-project command in your
terminal:
composer create-project --prefer-dist me-io/appium-selenium-starter
Installing Dependencies
Now run the following command to install required dependencies:
composer install
Configuring Environment
There are two cli applications included in starter. To view a list of all commands in these cli applications inside your terminal run the following commands one by one:
composer run appium composer run selenium
Appium
Lets configure your environment for running mobile application testing. Open your terminal and run the following command:
composer run appium configure
Selenium
To configure your environment for running selenium server run the below command:
composer run selenium configure
Running Example Tests
Note: For running example tests you need to have installed and configured the android emulator or iOS simulator on your machine.
Before running the mobile tests we need to start the appium server. To start appium server run the following command inside your terminal:
composer run appium start
We need to move everything from example directory to the root folder of the project. Run the following command inside your terminal:
mv example/* .
You can find the android and ios example tests inside /tests directory. We also put some example apps for android and ios inside /tests/_data/test-apps directory.
Android Tests
For running android emulator we are using genymotion. Follow this guide if you do not know how to install and run android emulator. You also need to install the application that you want to test inside android emulator.
Update Suite
Now you need to update the android.suite.yml you can find this filw inside tests directory. And also update the deviceName to your android emulator device name. If you have genymotion installed you can find the device name from the devices list.
Running Tests
To run the android tests run the following codecept command inside your terminal:
./vendor/bin/codecept -c example/codeception.yml run android --steps
Note: Make sure appium server is running before running the android tests.
iOS Tests
First you need to run the appium server than you need to start the iOS simulator. Use the following if you do not know how to run iOS sumulator http://www.macinstruct.com/node/494.
Update Suite
Now you need to update the ios.suite.yml you can find this file inside tests directory. Open ios.suite.yml file and update xcodeOrgId and udid to your running simulator identifier string. You can find your identifier string by opening the simulator then Hardware > Device > Manage Devices > Simulators. You will find a list of iOS devices now open the device that you are running and after clicking on the device name you will find the identifier string.
Running Tests
To run the ios tests run the following codecept command inside your terminal:
./vendor/bin/codecept -c example/codeception.yml run ios --steps
Contributors
A huge thanks to all of our contributors:
Mohamed Meabed 💻 📢 |
Zeeshan Ahmad 💻 🐛 ⚠️ 📖 |
|---|
License
The code is available under the MIT license.
me-io/appium-selenium-starter 适用场景与选型建议
me-io/appium-selenium-starter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20 次下载、GitHub Stars 达 29, 最近一次更新时间为 2018 年 02 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testing」 「test」 「boilerplate」 「unit」 「selenium」 「unit-testing」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 me-io/appium-selenium-starter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 me-io/appium-selenium-starter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 me-io/appium-selenium-starter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Testing Suite For Lumen like Laravel does.
PHP class to extend when building a WordPress plugin allowing you to follow smart plugin setup standards.
Anax htmlform module.
The PHP SDK for Checkmango
Laravel 5.7 Boilerplate based on Bootstrap 4 and Tabler for Backend.
Specification-oriented BDD helpers for PHPUnit
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-18