Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created May 8, 2024 07:01
Show Gist options
  • Save SarahElson/ae506c7566692cb5c17ce7b59e1dec6a to your computer and use it in GitHub Desktop.
Save SarahElson/ae506c7566692cb5c17ce7b59e1dec6a to your computer and use it in GitHub Desktop.
Handling Alerts and Popups in Appium
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Lambda tests Mobile automation test suite">
<test name="Proverbial app - iOS Mobile Automation tests for popup">
<parameter name="buildName" value="IOS Build"/>
<parameter name="testName" value="Find My App tests"/>
<parameter name="app" value="lt://APP10160531401673434634013700"/>
<parameter name="platformName" value="IOS"/>
<parameter name="version" value="13"/>
<parameter name="device" value="iPhone 8 Plus"/>
<classes>
<class name="io.github.mfaisalkhatri.mobileautomation.tests.IOSTests">
<methods>
<include name="notificationTest"/>
</methods>
</class>
</classes>
</test>
<test name="Proverbial app - Android Mobile Automation">
<parameter name="buildName" value="Android Build"/>
<parameter name="testName" value="Latest Proverbial app tests"/>
<parameter name="app" value="lt://APP10160531401673546544779159"/>
<parameter name="platformName" value="ANDROID"/>
<parameter name="version" value="11"/>
<parameter name="device" value="Galaxy S20 Plus "/>
<classes>
<class name="io.github.mfaisalkhatri.mobileautomation.tests.ProverbialAppNotificationTests">
<methods>
<include name="testNotification"/>
</methods>
</class>
</classes>
</test>
</suite>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment