File tree 3 files changed +42
-3
lines changed
src/test/java/com/baeldung
3 files changed +42
-3
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name : Java CI with Maven
10
+
11
+ on :
12
+ push :
13
+ branches :
14
+ - " main"
15
+ - " test-*"
16
+ pull_request :
17
+ branches :
18
+ - " main"
19
+ - " test-*"
20
+ jobs :
21
+ build :
22
+
23
+ runs-on : ubuntu-latest
24
+ env :
25
+ LT_USERNAME : ${{ secrets.LT_USERNAME }}
26
+ LT_ACCESS_KEY : ${{ secrets.LT_ACCESS_KEY }}
27
+
28
+ steps :
29
+ - uses : actions/checkout@v4
30
+ - name : Set up JDK 17
31
+ uses : actions/setup-java@v4
32
+ with :
33
+ java-version : ' 17'
34
+ distribution : ' temurin'
35
+ cache : maven
36
+ - name : Build and Test with Maven
37
+ run : mvn clean install
38
+
39
+
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ public class BaseTest {
17
17
18
18
@ BeforeTest
19
19
public void setup () {
20
- String userName = System .getenv ("LAMBDATEST_USERNAME " ) == null ? "LAMBDATEST_USERNAME " : System .getenv (
20
+ String userName = System .getenv ("LT_USERNAME " ) == null ? "LT_USERNAME " : System .getenv (
21
21
"LT_USERNAME" );
22
- String accessKey = System .getenv ("LAMBDATEST_ACCESS_KEY " ) == null ? "LAMBDATEST_ACCESS_KEY " : System .getenv (
22
+ String accessKey = System .getenv ("LT_ACCESS_KEY " ) == null ? "LT_ACCESS_KEY " : System .getenv (
23
23
"LT_ACCESS_KEY" );
24
24
String gridUrl = "@hub.lambdatest.com/wd/hub" ;
25
25
try {
Original file line number Diff line number Diff line change 5
5
<classes >
6
6
<class name =" com.baeldung.LambdaTestEcommerceTests" >
7
7
<methods >
8
- <include name =" testSearchProduct " />
8
+ <include name =" whenUserSearchesForAProduct_ThenSearchResultsShouldBeDisplayed " />
9
9
</methods >
10
10
</class >
11
11
</classes >
You can’t perform that action at this time.
0 commit comments