-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
96 additions
and
19 deletions.
There are no files selected for viewing
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
18 changes: 15 additions & 3 deletions
18
mrchecker-playwright-framework/src/main/resources/application.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
quarkus.log.level=DEBUG | ||
quarkus.http.port=8080 | ||
quarkus.log.console.enable=true | ||
quarkus.log.level=INFO | ||
quarkus.log.category."io.quarkus.bootstrap.classloading".level=ERROR | ||
quarkus.log.category."io.quarkus.bootstrap.classloading.QuarkusClassLoader".level=ERROR | ||
|
||
|
||
#quarkus.log.category."io.quarkus".level=DEBUG | ||
#quarkus.log.level=DEBUG | ||
|
||
quarkus.arc.unremovable-types=* | ||
quarkus.test.continuous-testing=disabled | ||
|
||
|
||
|
||
#quarkus.http.port=8080 | ||
#mp.messaging.outgoing.regression.connector=smallrye-amqp | ||
|
||
|
||
mp.messaging.outgoing.regression.connector=smallrye-amqp | ||
testcontainers.mode.debug=true |
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
27 changes: 27 additions & 0 deletions
27
...-framework/src/test/java/com/capgemini/frameworkExamples/page/TestContainersDemoPage.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.capgemini.frameworkExamples.page; | ||
|
||
import com.capgemini.framework.logger.AllureStepLogger; | ||
import com.capgemini.infrastructure.Configuration; | ||
import com.microsoft.playwright.Page; | ||
import com.microsoft.playwright.options.AriaRole; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import static com.capgemini.framework.playwright.PlaywrightFactory.getPage; | ||
import static com.microsoft.playwright.assertions.PlaywrightAssertions.assertThat; | ||
|
||
public class TestContainersDemoPage { | ||
private static final int PAGE_LOADING_TIMEOUT = 20000; | ||
private static final Logger log = LoggerFactory.getLogger(TestContainersDemoPage.class); | ||
|
||
public String clickButtonAndReturnText() { | ||
log.info(Configuration.getInstance().getMyWebAppUrl()); | ||
getPage().navigate(Configuration.getInstance().getMyWebAppUrl(), new Page.NavigateOptions().setTimeout(PAGE_LOADING_TIMEOUT)); | ||
// getPage().navigate("http://localhost:8080", new Page.NavigateOptions().setTimeout(PAGE_LOADING_TIMEOUT)); | ||
getPage().onLoad(p -> AllureStepLogger.step("Page loaded!")); | ||
getPage().getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Show request details")).click(); | ||
|
||
assertThat(getPage().getByRole(AriaRole.HEADING, new Page.GetByRoleOptions().setName("Request info").setExact(true))).isVisible(); | ||
return getPage().getByRole(AriaRole.HEADING, new Page.GetByRoleOptions().setName("Request info").setExact(true)).innerText(); | ||
} | ||
} |
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
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
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