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
public void authenticate() { | |
this.authenticateButton.click(); | |
new WebDriverWait(driver, 30).until(authenticated()); | |
} | |
private Predicate<WebDriver> authenticated() { | |
return new Predicate<WebDriver>() { | |
@Override public boolean apply(WebDriver driver) { | |
return isAuthenticated(); | |
} |
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.saucelabs.testng; | |
import com.saucelabs.common.Utils; | |
import org.json.simple.JSONArray; | |
import org.json.simple.JSONObject; | |
import org.json.simple.parser.JSONParser; | |
import org.json.simple.parser.ParseException; | |
import org.testng.annotations.DataProvider; | |
import java.lang.reflect.Method; |
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.Reporter; | |
import java.io.File; | |
import java.util.Enumeration; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import org.apache.log4j.Appender; | |
import org.apache.log4j.FileAppender; | |
import org.apache.log4j.Layout; | |
import org.apache.log4j.Level; | |
import org.apache.log4j.Logger; |
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
public class FactoryDataProviderTestBase extends MyTestBase | |
{ | |
@Factory(dataProvider = "dp") | |
public FactoryDataProviderTestBase( SauceTestHelper helper, | |
Map<String,String> csvArgMap ) { | |
super( helper, csvArgMap ); | |
} | |
@DataProvider( name = "factory" ) | |
static public Object[][] factoryDataProvider() { |
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
Using Ansible, given scenario with 3 hosts: vbox1, vbox2, and vbox3, this guide will teach you to do the | |
following Ansible tasks: | |
A. Configure Ansible | |
B. Define remote slave servers by group | |
C. Run any shell commands on your remote servers by their group name | |
D. Create a Apache playbook to install Apache2 on all of your remote servers | |
E. SCP files out to your remote servers | |
F. Create a new blank role directory structure for you to write your own Role and publish it to "Ansible Galaxy" for re-use. |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>myappJMeterTest</groupId> | |
<artifactId>myappJMeterTest</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>patsatJMeterTest</name> | |
<description>JMeter tests for testing myapp APIs.</description> | |
<repositories> | |
<repository> |
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
@ECHO off | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET TITLE=Schema crawler | |
TITLE %TITLE% | |
ECHO.&ECHO. | |
:: FORMAT can be csv or html | |
SET FORMAT=html | |
SET INPUTFILE=table.names | |
SET USER=user |
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.annotations.* | |
import org.testng.TestNG | |
import org.testng.TestListenerAdapter | |
@Grab(group='org.testng', module='testng', version='5.7', classifier='jdk15') | |
class HogeTest { | |
@Test | |
void add() { | |
assert 1 + 1 == 2 | |
} |
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 engine.test.selenium.common.helper; | |
import org.testng.IInvokedMethod; | |
import org.testng.IReporter; | |
import org.testng.IResultMap; | |
import org.testng.ISuite; | |
import org.testng.ISuiteResult; | |
import org.testng.ITestClass; | |
import org.testng.ITestContext; | |
import org.testng.ITestNGMethod; |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>JMeterTest</groupId> | |
<artifactId>JMeterTest</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>JMeterTest</name> | |
<description>JMeter tests for testing API</description> | |
<dependencies> | |
<dependency> | |
<groupId>com.lazerycode.jmeter</groupId> |