๐
This file contains hidden or 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.automation.env; | |
import io.restassured.RestAssured; | |
public class QueryRestEndPoint { | |
public String getData() { | |
String url = System.getenv("ENV_URL"); | |
return RestAssured.given().get(url).thenReturn().asString(); | |
} |
This file contains hidden or 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 io.testing.tables.csvtable; | |
import java.util.Objects; | |
public class CsvConfiguration { | |
private final String fileName; | |
public String getFileName() { | |
return fileName; |
This file contains hidden or 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.api.automation; | |
import org.openqa.selenium.Capabilities; | |
import org.testcontainers.Testcontainers; | |
import org.testcontainers.containers.BrowserWebDriverContainer; | |
import org.testcontainers.utility.DockerImageName; | |
public abstract class BaseContainerConfiguration { | |
protected BrowserWebDriverContainer<?> container = null; |
This file contains hidden or 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.automation.model; | |
public class Address { | |
private int zipCode; | |
public int getZipCode() { | |
return zipCode; | |
} |
This file contains hidden or 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.automation.csvconfig; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import org.apache.commons.csv.CSVFormat; |
This file contains hidden or 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.api.automation; | |
import org.openqa.selenium.chrome.ChromeOptions; | |
import org.testcontainers.Testcontainers; | |
import org.testcontainers.containers.BrowserWebDriverContainer; | |
import org.testcontainers.utility.DockerImageName; | |
import org.testng.annotations.AfterSuite; | |
import org.testng.annotations.BeforeSuite; | |
public class BaseTest { |
This file contains hidden or 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
Feature: To setup the browser only once | |
Scenario: Open the browser | |
Given BrowserOne_I open the URL | |
And BrowserOne_I wait for 5 sec |
This file contains hidden or 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 CsvHelper; | |
using CsvHelper.Configuration; | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
namespace CsvDataReading | |
{ | |
public class CsvDataReader<T> |
This file contains hidden or 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
@CucumberOptions( | |
features = {"src/main/java/com/webdriver/page/BugCreation.feature", | |
"src/main/java/com/webdriver/page/ShoppingCart.feature", | |
"src/main/java/com/webdriver/page/Payment.feature" | |
}, | |
glue = {"com.webdriver.page","com.webdriver.generichook"}, | |
dryRun = false, | |
monochrome = true, | |
plugin = {"pretty","json:target/bugcreationrunner.json"} | |
) |
NewerOlder