Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/test/java/Test1.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public void test1_element_addition_1() throws InterruptedException {
driver.findElement(By.xpath(xpath)).click();
Thread.sleep(500);
test1.log(Status.PASS, "Item No. " + i + " marked completed");
By remainingItem = By.className("ng-binding");
By remainingItem = By.cssSelector("[data-testid='remaining-count']");
String actualText = driver.findElement(remainingItem).getText();
String expectedText = remaining + " of " + totalCount + " tasks remaining";
String expectedText = remaining + " of " + totalCount + " remaining";

if (!actualText.contains(expectedText)) {
test1.log(Status.FAIL, "Wrong Text Description");
Expand Down Expand Up @@ -192,9 +192,9 @@ public void test1_element_addition_2() throws InterruptedException, IOException
driver.findElement(By.xpath(xpath)).click();
Thread.sleep(500);
test2.log(Status.PASS, "Item No. " + i + " marked completed");
By remainingItem = By.className("ng-binding");
By remainingItem = By.cssSelector("[data-testid='remaining-count']");
String actualText = driver.findElement(remainingItem).getText();
String expectedText = remaining + " of " + totalCount + " tasks remaining";
String expectedText = remaining + " of " + totalCount + " remaining";

if (!actualText.contains(expectedText)) {
test2.log(Status.FAIL, "Wrong Text Description");
Expand Down
32 changes: 32 additions & 0 deletions yaml/linux/v1/testng_hyperexecute_matrix_sample_ocp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
version: 0.1
runson: ${matrix.os}

onpremEnv: ocp-pre-prod

matrix:
tests: ["Test_1"]
browser: ["Chrome"]
version: ["latest"]
os: ["linux"]

runtime:
language: java
version: 11

cacheKey: '{{ checksum "pom.xml" }}'
cacheDirectories:
- .m2

pre:
- mvn -Dmaven.repo.local=./.m2 dependency:resolve

testSuites:
- mvn test -Dplatname=linux -Dmaven.repo.local=./.m2 -DselectedTests=$tests

parallelism: 1

retryOnFailure: true
maxRetries: 1

jobLabel: [selenium-testng, linux, matrix, ocp-pre-prod]