This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.testng.practise; | |
import org.testng.Assert; | |
import org.testng.IRetryAnalyzer; | |
import org.testng.ITestResult; | |
import org.testng.Reporter; | |
import org.testng.annotations.*; | |
public class RerunFailedTestCases implements IRetryAnalyzer{ | |
private int retryCount = 0; | |
private int maxRetryCount = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.testng.practise; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Method; | |
import org.testng.IAnnotationTransformer; | |
import org.testng.ITest; | |
import org.testng.annotations.ITestAnnotation; | |
import org.testng.annotations.Test; | |
import org.testng.IAnnotationTransformer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > | |
<suite name="Phoenix.Equinox.Com Verification" verbose="1"> | |
<listeners> | |
<listener class-name="com.testng.practise.SeleniumStarterListener"></listener> | |
</listeners> | |
<test name="Retry Test"> | |
<classes> | |
<class name="com.testng.practise.Annotationtransformerexample"></class> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.testng.ISuite; | |
import org.testng.ISuiteListener; | |
public class SeleniumStarterListener implements ISuiteListener { | |
public void onStart(ISuite suite) { | |
} | |
public void onFinish(ISuite suite) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.android.NativeBrowserAutomation; | |
import io.appium.java_client.android.AndroidDriver; | |
import io.appium.java_client.remote.MobileBrowserType; | |
import io.appium.java_client.remote.MobileCapabilityType; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.testng.ISuite; | |
import org.testng.ISuiteListener; | |
import org.testng.IExecutionListener; | |
public class TestNGExecutionListener implements IExecutionListener { | |
@Override | |
public void onExecutionStart() { | |
System.out.println("TestNG is staring the execution"); | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* TestRail API binding for Java (API v2, available since TestRail 3.0) | |
* | |
* Learn more: | |
* | |
* http://docs.gurock.com/testrail-api2/start | |
* http://docs.gurock.com/testrail-api2/accessing | |
* | |
* Copyright Gurock Software GmbH. See license.md for details. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android list targets | |
android create avd -n <name> -t <targetID> [-<option> <value>] ... | |
android delete avd -n <name> | |
To Launch the avd | |
emulator -avd <name> - to launch the avd | |
android avd - to launch the avd manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To know the package name and main activity of an apk: | |
cd /Users/amit.rawat/Library/Android/sdk/build-tools/21.1.2 | |
./aapt dump badging <Path of apk> | |
Look for text "package" in the output | |
Look for text "launchable-activity: | |
package: name='io.appium.android.apis' versionCode='' versionName='' platformBuildVersionName='' | |
launchable-activity: name='io.appium.android.apis.ApiDemos' label='' icon='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mobile.equinox.util; | |
import java.awt.Graphics; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.imageio.ImageIO; |
OlderNewer