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
#Check if an argument was supplied | |
if [ -z "$1" ] | |
then | |
echo "No argument supplied, please provide video name" | |
else | |
# start recording | |
adb shell screenrecord --bit-rate 6000000 /sdcard/$1.mp4 & | |
# Get its PID | |
PID=$! |
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
You can start Appium server from the job itself using PM2, | |
Please find the commands we are currently running | |
pm2 start /usr/local/lib/node_modules/appium/lib/server/main.js | |
pm2 logs | |
pm2 delete main | |
pm2 stop <id> | |
pm2 stop main | |
pm2 list |
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
For Cloning: | |
git clone -b <Branch_Name> | |
To create and checkout | |
git checkout -b <Branch Name> | |
git branch <Branch Name> | |
git checkout <Branch Name> |
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. | |
*/ |
OlderNewer