This commit is contained in:
parent
9c43b8afd8
commit
ed7268ceb3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
### IDES ###
|
### IDES ###
|
||||||
.idea/
|
.idea/
|
||||||
|
*.iml
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
### PROJECT BUILD ###
|
### PROJECT BUILD ###
|
||||||
|
2
pom.xml
2
pom.xml
@ -164,7 +164,7 @@
|
|||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>3.0.0-M7</version>
|
<version>3.0.0-M7</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<testSourceDirectory>src/test/java/org/example/webtests</testSourceDirectory>
|
<testSourceDirectory>src/test/java/com/gmgauthier/webtests</testSourceDirectory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*DemoRunner.java</include>
|
<include>**/*DemoRunner.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.example;
|
package com.gmgauthier;
|
||||||
|
|
||||||
import com.microsoft.playwright.*;
|
import com.microsoft.playwright.*;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.example;
|
package com.gmgauthier;
|
||||||
|
|
||||||
import com.microsoft.playwright.*;
|
import com.microsoft.playwright.*;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
@ -1,4 +1,4 @@
|
|||||||
package org.example.pages;
|
package com.gmgauthier.pages;
|
||||||
|
|
||||||
import com.microsoft.playwright.Page;
|
import com.microsoft.playwright.Page;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.example.pages;
|
package com.gmgauthier.pages;
|
||||||
|
|
||||||
import com.microsoft.playwright.Locator;
|
import com.microsoft.playwright.Locator;
|
||||||
import com.microsoft.playwright.Page;
|
import com.microsoft.playwright.Page;
|
@ -1,4 +1,4 @@
|
|||||||
package org.example.apitests;
|
package com.gmgauthier.apitests;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonArray;
|
import com.google.gson.JsonArray;
|
@ -1,4 +1,4 @@
|
|||||||
package org.example.utils;
|
package com.gmgauthier.utils;
|
||||||
|
|
||||||
import com.microsoft.playwright.APIRequest;
|
import com.microsoft.playwright.APIRequest;
|
||||||
import com.microsoft.playwright.APIRequestContext;
|
import com.microsoft.playwright.APIRequestContext;
|
@ -1,4 +1,4 @@
|
|||||||
package org.example.utils;
|
package com.gmgauthier.utils;
|
||||||
|
|
||||||
import com.microsoft.playwright.Browser;
|
import com.microsoft.playwright.Browser;
|
||||||
import com.microsoft.playwright.BrowserType;
|
import com.microsoft.playwright.BrowserType;
|
@ -1,4 +1,4 @@
|
|||||||
package org.example.webtests.runner;
|
package com.gmgauthier.webtests.runner;
|
||||||
|
|
||||||
import io.cucumber.junit.Cucumber;
|
import io.cucumber.junit.Cucumber;
|
||||||
import io.cucumber.junit.CucumberOptions;
|
import io.cucumber.junit.CucumberOptions;
|
||||||
@ -6,8 +6,8 @@ import org.junit.runner.RunWith;
|
|||||||
|
|
||||||
@RunWith(Cucumber.class)
|
@RunWith(Cucumber.class)
|
||||||
@CucumberOptions(
|
@CucumberOptions(
|
||||||
features = "src/test/java/org/example/webtests/features/",
|
features = "src/test/java/com/gmgauthier/webtests/features/",
|
||||||
glue = {"org.example.webtests.steps"},
|
glue = {"com.gmgauthier.webtests.steps"},
|
||||||
plugin = {
|
plugin = {
|
||||||
"pretty",
|
"pretty",
|
||||||
"html:target/test-reports/cucumber-report.html",
|
"html:target/test-reports/cucumber-report.html",
|
@ -1,14 +1,14 @@
|
|||||||
package org.example.webtests.steps;
|
package com.gmgauthier.webtests.steps;
|
||||||
|
|
||||||
|
import com.gmgauthier.utils.TestContext;
|
||||||
import com.microsoft.playwright.Page;
|
import com.microsoft.playwright.Page;
|
||||||
import io.cucumber.java.Before;
|
import io.cucumber.java.Before;
|
||||||
import io.cucumber.java.After;
|
import io.cucumber.java.After;
|
||||||
import io.cucumber.java.en.Given;
|
import io.cucumber.java.en.Given;
|
||||||
import io.cucumber.java.en.Then;
|
import io.cucumber.java.en.Then;
|
||||||
import io.cucumber.java.en.When;
|
import io.cucumber.java.en.When;
|
||||||
import org.example.pages.Home;
|
import com.gmgauthier.pages.Home;
|
||||||
import org.example.pages.Login;
|
import com.gmgauthier.pages.Login;
|
||||||
import org.example.utils.TestContext;
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
public class LoginSteps {
|
public class LoginSteps {
|
Loading…
Reference in New Issue
Block a user