在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):saucelabs/sample-app-mobile开源软件地址(OpenSource Url):https://github.com/saucelabs/sample-app-mobile开源编程语言(OpenSource Language):JavaScript 87.4%开源软件介绍(OpenSource Introduction):Sauce Labs Native Sample Application
In this repository you will find our Sauce Labs sample-app. You can use it as a sample app for testautomation on your local machine or in our Real Device Cloud.
The latest version of the iOS and Android app can be found here. Table of contentsFunctionalitiesTouch / Face IDThis app supports TouchID and FaceID for Android and iOS and will only show when the phone supports and has this enabled. See AUTOMATION.md for using Touch / Face ID with automation. Enabling Touch / Face ID on Android emulators
To enable this on Android emulators you need to do the following (when you have an emulator that supports this):
Enabling Touch / Face ID on iOS simulatorsTo enable this on iOS simulators you need to do the following (when you have a simulator that supports this):
In the previous mentioned menu you can also select a (non)matching Touch / Face ID when the phone is asking for it. Deep linkingThis app supports deep linking for iOS and for Android, this means that screens can directly be opened with a deep link. The prefix deep link is
For how to run the deep link automation script see Deep Linking. Use with AndroidOpen a terminal and add the following # This will open the Checkout overview screen with 2 products in it
adb shell am start -W -a android.intent.action.VIEW -d "swaglabs://checkout-overview/1,2" Use with iOSThere are 2 ways of using deep links with iOS, through a terminal or through Safari TerminalOpen a terminal and add the following # This will open the Swag overview screen with 2 products in it
xcrun simctl openurl booted swaglabs://swag-overview/0,1 With SafariOpen Safari and type the following swaglabs://swag-overview/0,1 It will prompt a dialog asking you to open the app, select Yes and it will open the screen you selected. 3D Touch - Force TouchThis app also supports 3D Touch - Force Touch for devices that support that.
When you installed the app manually you first need to open the app and close to be able to press on the icon to see the 2 options popping up. This will happens automatically during automation because the app will be opened by Appium by default and you need to close it to test the quick action menu. Different languagesThis app supports 3 different languages and will automatically check the language of the device to set the right language. The supported languages are:
For the automation of the different languages see here QR code scannerThis app now also has a QR code scanner. You can find it in the menu under the option "QR CODE SCANNER". This page opens the camera (you first need to allow the app to use the camera) which can be used to scan a QR Code. If the QR code holds an URL it will automatically open it in a browser. The following image can be used to demo this option. GesturesThis app also support different Gestures which can be found below. Drag and DropThe swag overview page supports to drag and drop swag items to the cart. All Add to cart-buttons have a drag handle which you can use to drag the items into the cart. When you press the handle and start dragging it a drop zone will appear. When you release the swag item into the drop zone the swag item will be added to the cart. Pinch and ZoomThe swag details page supports to pinch and zoom the swag item image. Check the gif on how to use it. SwipingThe cart contents page supports to remove an item from the cart by swiping it to the left. Check the gif on how to use it. Geo LocationThis app now also supports testing changing the Geo Location. The app will pick up changes when the location is mocked, see this test for more information. DrawingDrawing your favorite Sauce Bolt can now been done in this app, you can even save it to your camera roll. If you want to do this with Appium then take a peak here for more information. Contributing to the appIf you want to contribute to the app and add new functionalities, please check the documentation here. Test-automationAppiumHere you will find more information about:
EspressoThis project can also build an Espresso test apk which can be ran in the Sauce Labs RDC cloud. More information can be found here. XCUITestThis project can also build an XCUITest test app which can be ran in the Sauce Labs RDC cloud. More information can be found here. FAQDownloaded iOS apps shows 'App is damaged and can't be opened. You should move it to the trash.' after manually installYou can get this warning when you have OSX Catalina or higher and try to install the app manually. This has to do with the new security settings in Catalina.
You can fix this with the following steps before dragging the app to the simulator:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论