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 java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.UnsupportedEncodingException; | |
import gherkin.formatter.JSONFormatter; | |
import gherkin.formatter.JSONPrettyFormatter; | |
import gherkin.parser.Parser; | |
import gherkin.util.FixJava; |
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
Gherkin forum: https://groups.google.com/forum/#!topic/cukes/lTjVWgfGf20 |
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 GToJRun { | |
private static String featurePath = "c:\\Json\\login.feature"; | |
private static String jasonPath = "c:\\Json\\login.json"; | |
// Set as pretty / ugly format // | |
static GtoJCore testG = new GtoJCore("pretty"); | |
public static void main(String[] args) { | |
testG.gherkinTojson(featurePath, jasonPath); |
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 java.io.IOException; | |
public class MockyRun { | |
private final static String USER_AGENT = "Mozilla/5.0"; | |
static String url1 = "url"; | |
static MockyCall callM = new MockyCall (USER_AGENT); | |
public static void main(String[] args) throws IOException { | |
callM.sendPost(url1); |
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 java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
public class MockyCall { | |
private final String USER_AGENT; | |
public MockyCall (String userAgent) { |
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
/* Call SOAP URL and send the Request XML and Get Response XML back */ | |
import java.io.BufferedReader; | |
import java.io.ByteArrayOutputStream; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; |
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 java.util.Properties; | |
import java.util.Random; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.sql.DriverManager; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; |
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.main; | |
import javax.imageio.ImageIO; | |
import org.apache.commons.io.IOUtils; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.FileInputStream; | |
public class ImageUtil { |
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.junit.runner.JUnitCore; | |
import org.junit.runner.Result; | |
public static void main(String[] args) { | |
JUnitCore junit = new JUnitCore(); | |
Result result = junit.run(CucmberJVMRun.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
package com.main; | |
import org.openqa.selenium.Capabilities; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
public class BrowserVersion { | |
private static WebDriver browserDriver; |
OlderNewer