Skip to content

Commit

Permalink
cleanup README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasstamann committed Oct 20, 2024
1 parent 66d20d7 commit ae27912
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 44 deletions.
87 changes: 44 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ The api lib must be bound as a dependency - for example in maven:
```xml
<dependencies>

<dependency>
<groupId>io.toolisticon.pogen4selenium</groupId>
<artifactId>pogen4selenium-api</artifactId>
<version>0.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.toolisticon.pogen4selenium</groupId>
<artifactId>pogen4selenium-api</artifactId>
<version>0.1.0</version>
<scope>provided</scope>
</dependency>

</dependencies>
```
Expand Down Expand Up @@ -175,21 +175,21 @@ public class TestPageTest {
TestPagePageObject.init(webDriver)
.doAssertions(e -> {

// Do assertions here
List<TestPageTableEntry> results = e.getTableEntries();
MatcherAssert.assertThat(results, Matchers.hasSize(2));
MatcherAssert.assertThat(results.getFirst().name(), Matchers.is("Max"));
MatcherAssert.assertThat(results.getFirst().age(), Matchers.is("9"));
MatcherAssert.assertThat(results.getFirst().link(), Matchers.is("https://de.wikipedia.org/wiki/Max_und_Moritz"));
MatcherAssert.assertThat(results.getFirst().linkText(), Matchers.is("Max und Moritz Wikipedia"));
MatcherAssert.assertThat(results.get(1).name(), Matchers.is("Moritz"));
MatcherAssert.assertThat(results.get(1).age(), Matchers.is("10"));
MatcherAssert.assertThat(results.get(1).link(), Matchers.is("https://de.wikipedia.org/wiki/Wilhelm_Busch"));
MatcherAssert.assertThat(results.get(1).linkText(), Matchers.is("Wilhelm Busch Wikipedia"));
// Do assertions here
List<TestPageTableEntry> results = e.getTableEntries();

MatcherAssert.assertThat(results, Matchers.hasSize(2));

MatcherAssert.assertThat(results.getFirst().name(), Matchers.is("Max"));
MatcherAssert.assertThat(results.getFirst().age(), Matchers.is("9"));
MatcherAssert.assertThat(results.getFirst().link(), Matchers.is("https://de.wikipedia.org/wiki/Max_und_Moritz"));
MatcherAssert.assertThat(results.getFirst().linkText(), Matchers.is("Max und Moritz Wikipedia"));


MatcherAssert.assertThat(results.get(1).name(), Matchers.is("Moritz"));
MatcherAssert.assertThat(results.get(1).age(), Matchers.is("10"));
MatcherAssert.assertThat(results.get(1).link(), Matchers.is("https://de.wikipedia.org/wiki/Wilhelm_Busch"));
MatcherAssert.assertThat(results.get(1).linkText(), Matchers.is("Wilhelm Busch Wikipedia"));


});
Expand All @@ -200,34 +200,35 @@ public class TestPageTest {
TestPagePageObject.init(webDriver)
.doAssertions(e -> {

// Do assertions here
TestPageTableEntry result = e.getFirstTableEntry();
MatcherAssert.assertThat(result.name(), Matchers.is("Max"));
MatcherAssert.assertThat(result.age(), Matchers.is("9"));
MatcherAssert.assertThat(result.link(), Matchers.is("https://de.wikipedia.org/wiki/Max_und_Moritz"));
MatcherAssert.assertThat(result.linkText(), Matchers.is("Max und Moritz Wikipedia"));
// Do assertions here
TestPageTableEntry result = e.getFirstTableEntry();


MatcherAssert.assertThat(result.name(), Matchers.is("Max"));
MatcherAssert.assertThat(result.age(), Matchers.is("9"));
MatcherAssert.assertThat(result.link(), Matchers.is("https://de.wikipedia.org/wiki/Max_und_Moritz"));
MatcherAssert.assertThat(result.linkText(), Matchers.is("Max und Moritz Wikipedia"));



});
});
}

@Test
public void incrementCounterTest() {
TestPagePageObject.init(webDriver)
.doAssertions(e -> {
MatcherAssert.assertThat(e.getCounter(), Matchers.is("1"));
}).clickCounterIncrementButton()
.doAssertions(e -> {
MatcherAssert.assertThat(e.getCounter(), Matchers.is("2"));
})
.clickCounterIncrementButton()
.clickCounterIncrementButton()
.doAssertions(e -> {
MatcherAssert.assertThat(e.getCounter(), Matchers.is("4"));
});
.doAssertions(e -> {
MatcherAssert.assertThat(e.getCounter(), Matchers.is("1"));
})
.clickCounterIncrementButton()
.doAssertions(e -> {
MatcherAssert.assertThat(e.getCounter(), Matchers.is("2"));
})
.clickCounterIncrementButton()
.clickCounterIncrementButton()
.doAssertions(e -> {
MatcherAssert.assertThat(e.getCounter(), Matchers.is("4"));
});
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package io.toolisticon.pogen4selenium.processor.pageobject;

public class ExtractDataValueWrapperExtension {

}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
<plugin>
<groupId>com.amashchenko.maven.plugin</groupId>
<artifactId>gitflow-maven-plugin</artifactId>
<version>${maven-git${gitflow-maven-plugin.version}</version>
<version>${gitflow-maven-plugin.version}</version>
<configuration>
<gitFlowConfig>
<productionBranch>master</productionBranch>
Expand Down

0 comments on commit ae27912

Please sign in to comment.