![]() We have now added an audio streaming feature that allows you to listen to the audio played through the test device in addition to seeing the device screens. Previously, Remote Test Lab showed the screens of real devices, but without any audio, which was inconvenient for testing audio features. Many apps play a variety of common media types, such as audio, video, and images. In this article, we introduce two new features available on the Remote Test Lab service. Since last year, we have added more features for you to expand your test coverage. MultiTouch.add(action1).add(action2).add(action3).add(action4).In the previous post, we introduced Remote Test Lab, a service that enables you to test your application on a real mobile phone or watch device by interacting with it over the Internet in real time. 'Multi Touch Object to add Multiple touch actions as per you need' 'Press Fourth action with x y coordinates wait 5 Seconds then release'Īction4.press(PointOption.point(X4, Y4)).waitAction(WaitOptions.waitOptions(Duration.ofMillis(5000))).release() 'Press Third action with x y coordinates wait 5 Seconds then release'Īction3.press(PointOption.point(X3, Y3)).waitAction(WaitOptions.waitOptions(Duration.ofMillis(5000))).release() 'Press Second action with x y coordinates wait 5 Seconds then release'Īction2.press(PointOption.point(X2, Y2)).waitAction(WaitOptions.waitOptions(Duration.ofMillis(5000))).release() 'Press First action with x y coordinates wait 5 Seconds then release'Īction1.press(PointOption.point(X1, Y1)).waitAction(WaitOptions.waitOptions(Duration.ofMillis(5000))).release() TouchAction action4 = new TouchAction(driver) 'Create Fourth action Object to "TouchAction" class' ![]() TouchAction action3 = new TouchAction(driver) 'Create Third action Object to "TouchAction" class' TouchAction action2 = new TouchAction(driver) 'Create Second action Object to "TouchAction" class' TouchAction action1 = new TouchAction(driver) 'Create First action Object to "TouchAction" class' MultiTouchAction multiTouch = new MultiTouchAction(driver) 'Create object to "MultiTouchAction" class ' 'Get Y4 coordinate of touchpoint 4 (Bottom Right Side)' 'Get X4 coordinate of touchpoint 4 (Bottom Right Side)' ![]() 'Get Y3 coordinate of touchpoint 3 (Bottom Left Side)' 'Get X3 coordinate of touchpoint 3 (Bottom Left Side)' 'Get Y2 coordinate of touchpoint 2 (Top Right Side)' 'Get X2 coordinate of touchpoint 2 (Top Right Side)' 'Get Y1 coordinate of touch action 1 (Top Left Side)' 'Get X1 coordinate of touchpoint 1 (Top Left Side)' ![]() 'Get Device Width and store to "device_Width" variable' 'Get Device Height and store to "device_Height" variable' 'Initializing Katalon Mobile Driver to Appium Driver'ĪppiumDriver driver = MobileDriverFactory.getDriver() Mobile.verifyElementVisible(findTestObject('MultiTouchTester/text_Touch Me'), 30) Mobile.waitForElementPresent(findTestObject('MultiTouchTester/text_Touch Me'), 30) 'Path of the Apk File Store in path variable'ĭef path = RunConfiguration.getProjectDir() + '/Data Files/MultiTouchTester.apk' Import io.appium.java_client.TouchAction as TouchAction Import io.appium.java_client.MultiTouchAction as MultiTouchAction Import io.appium.java_client.AppiumDriver as AppiumDriver Import .configuration.RunConfiguration as RunConfiguration Thus, we suggest the users utilize this feature where one can quickly automate the test scenario and easily manage test scripts. The final step is to add a method call statement and generate a multi-touch action chain.Īs you can see from the step-by-step guide above, there are repeated steps that would be easier to create in Script Mode.Add a method call statement and press first action with X, Y coordinates and wait for 5 seconds then release.Set all four touch actions on given X, Y Coordinates of the screen.Create an object of MultiTouchAction class. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |