Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelrhman-Ellithy committed Nov 20, 2024
1 parent f2a1ae2 commit c755f41
Show file tree
Hide file tree
Showing 23 changed files with 309 additions and 333 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ updates:
target-branch: "main"


- package-ecosystem: "github-DriverActions"
- package-ecosystem: "github-WebDriverActions"
directory: "/"
schedule:
interval: "daily"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
java-version: [21]
steps:
- name: Check out code
uses: DriverActions/checkout@v4
uses: WebDriverActions/checkout@v4

- name: Set up JDK ${{ matrix.java-version }}
uses: DriverActions/setup-java@v4
uses: WebDriverActions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
Expand All @@ -39,10 +39,10 @@ jobs:
java-version: [21]
steps:
- name: Check out code
uses: DriverActions/checkout@v4
uses: WebDriverActions/checkout@v4

- name: Set up JDK ${{ matrix.java-version }}
uses: DriverActions/setup-java@v4
uses: WebDriverActions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
Expand All @@ -64,10 +64,10 @@ jobs:
java-version: [21]
steps:
- name: Check out code
uses: DriverActions/checkout@v4
uses: WebDriverActions/checkout@v4

- name: Set up JDK ${{ matrix.java-version }}
uses: DriverActions/setup-java@v4
uses: WebDriverActions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
Expand Down
80 changes: 0 additions & 80 deletions LastReport/index.html

This file was deleted.

145 changes: 75 additions & 70 deletions Test-Output/Logs/Test.log
Original file line number Diff line number Diff line change
@@ -1,70 +1,75 @@
2024-11-18 20:43:03 DEBUG TestNG - suiteXmlPath: "C:\Users\lenovo\IdeaProjects\Ellithium\TestNGRunner.xml"
2024-11-18 20:43:04 INFO logsUtils - Getting Timestamp: 2024-11-18
2024-11-18 20:43:04 INFO logsUtils - Reading value for key: LastRunDate from JSON file: Test-Output\UpdateChecker\checker
2024-11-18 20:43:04 INFO logsUtils - Successfully read value for key: LastRunDate from JSON file: Test-Output\UpdateChecker\checker
2024-11-18 20:43:04 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\config
2024-11-18 20:43:04 INFO logsUtils - ---------------------------------------------
2024-11-18 20:43:04 INFO logsUtils - ------- Ellithium Engine Setup -------------
2024-11-18 20:43:04 INFO logsUtils - ---------------------------------------------
2024-11-18 20:43:04 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-18 20:43:04 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.SetUp()[pri:0, instance:null] -1847264985
2024-11-18 20:43:04 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.testEnd()[pri:0, instance:null] 1041438139
2024-11-18 20:43:04 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ADDING NODE AppiumBase.setup()[pri:0, instance:null] -2089290894
2024-11-18 20:43:04 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ADDING NODE AppiumBase.tareDown()[pri:0, instance:null] 1619973931
2024-11-18 20:43:04 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.SetUp()[pri:0, instance:Tests.AppiumTest@38704ff0] -483755095
2024-11-18 20:43:04 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ADDING NODE AppiumTest.SmokeMobileTest()[pri:0, instance:Tests.AppiumTest@38704ff0] -1397567403
2024-11-18 20:43:04 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.testEnd()[pri:0, instance:Tests.AppiumTest@38704ff0] -1128271467
2024-11-18 20:43:04 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:04 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:04 INFO logsUtils - [SUITE STARTED]: FRAMEWORK TEST [SUITE STARTED]
2024-11-18 20:43:04 INFO logsUtils - [ALL TESTS STARTED]: ِMOBILE ANDROID TEST [ALL TESTS STARTED]
2024-11-18 20:43:04 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\config
2024-11-18 20:43:04 INFO logsUtils - [START] TESTCASE SmokeMobileTest [STARTED]
2024-11-18 20:43:04 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\config
2024-11-18 20:43:05 INFO logsUtils - [FAILED] TESTCASE SmokeMobileTest [FAILED]
2024-11-18 20:43:05 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\log4j2
2024-11-18 20:43:05 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\log4j2
2024-11-18 20:43:05 INFO logsUtils - Log file successfully attached to the Allure report.
2024-11-18 20:43:05 INFO logsUtils - [ALL TESTS COMPLETED]: ِMOBILE ANDROID TEST [ALL TESTS COMPLETED]
2024-11-18 20:43:05 INFO logsUtils - [SUITE FINISHED]: FRAMEWORK TEST [SUITE FINISHED]
2024-11-18 20:43:05 TRACE Graph - [Graph] ADDING NODE AppiumTest.SmokeMobileTest()[pri:0, instance:Tests.AppiumTest@38704ff0] -1397567403
2024-11-18 20:43:05 TRACE Graph - [Graph] ================ SORTING
2024-11-18 20:43:05 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-18 20:43:05 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-18 20:43:05 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-18 20:43:05 INFO logsUtils - Total Execution Time is: 0 Min 1 Sec 345 Mills
2024-11-18 20:43:05 INFO logsUtils - ------------------------------------------
2024-11-18 20:43:05 INFO logsUtils - ------- Ellithium Engine TearDown -------
2024-11-18 20:43:05 INFO logsUtils - ------------------------------------------
2024-11-18 20:43:05 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-18 20:43:05 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-18 20:43:05 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-18 20:43:05 INFO logsUtils - Allure folder exists at: C:\Users\lenovo\.m2\repository\allure-Ellithium
2024-11-18 20:43:05 INFO logsUtils - Found Allure binary directory: C:\Users\lenovo\.m2\repository\allure-Ellithium\-2.30.0\bin
2024-11-18 20:43:05 INFO logsUtils - Attempting to execute command: C:\Users\lenovo\.m2\repository\allure-Ellithium\-2.30.0\bin\allure generate --single-file --name "Test Report" -o .\LastReport\ .\Test-Output/Reports/Allure/allure-results\
2024-11-20 17:47:17 DEBUG TestNG - suiteXmlPath: "C:\Users\lenovo\IdeaProjects\Ellithium\TestNGRunner.xml"
2024-11-20 17:47:17 INFO logsUtils - Getting Timestamp: 2024-11-20
2024-11-20 17:47:17 INFO logsUtils - Reading value for key: LastRunDate from JSON file: Test-Output\UpdateChecker\checker
2024-11-20 17:47:18 INFO logsUtils - Successfully read value for key: LastRunDate from JSON file: Test-Output\UpdateChecker\checker
2024-11-20 17:47:18 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\config
2024-11-20 17:47:18 INFO logsUtils - ---------------------------------------------
2024-11-20 17:47:18 INFO logsUtils - ------- Ellithium Engine Setup -------------
2024-11-20 17:47:18 INFO logsUtils - ---------------------------------------------
2024-11-20 17:47:18 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-20 17:47:18 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.SetUp()[pri:0, instance:null] -1847264985
2024-11-20 17:47:18 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.testEnd()[pri:0, instance:null] 1041438139
2024-11-20 17:47:18 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ADDING NODE AppiumBase.setup()[pri:0, instance:null] -2089290894
2024-11-20 17:47:18 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ADDING NODE AppiumBase.tareDown()[pri:0, instance:null] 1619973931
2024-11-20 17:47:18 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.SetUp()[pri:0, instance:Tests.AppiumTest@36dfbdaf] -510006936
2024-11-20 17:47:18 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ADDING NODE AppiumTest.SmokeMobileTest()[pri:0, instance:Tests.AppiumTest@36dfbdaf] -1423819244
2024-11-20 17:47:18 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ADDING NODE NonBDDSetup.testEnd()[pri:0, instance:Tests.AppiumTest@36dfbdaf] -1154523308
2024-11-20 17:47:18 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:18 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:18 INFO logsUtils - [SUITE STARTED]: FRAMEWORK TEST [SUITE STARTED]
2024-11-20 17:47:18 INFO logsUtils - [ALL TESTS STARTED]: ِMOBILE ANDROID TEST [ALL TESTS STARTED]
2024-11-20 17:47:18 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\config
2024-11-20 17:47:18 INFO logsUtils - [START] TESTCASE SmokeMobileTest [STARTED]
2024-11-20 17:47:18 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\config
2024-11-20 17:47:39 INFO logsUtils - [FAILED] TESTCASE SmokeMobileTest [FAILED]
2024-11-20 17:47:39 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\log4j2
2024-11-20 17:47:39 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\log4j2
2024-11-20 17:47:39 INFO logsUtils - Log file successfully attached to the Allure report.
2024-11-20 17:47:39 INFO logsUtils - [ALL TESTS COMPLETED]: ِMOBILE ANDROID TEST [ALL TESTS COMPLETED]
2024-11-20 17:47:39 INFO logsUtils - [SUITE FINISHED]: FRAMEWORK TEST [SUITE FINISHED]
2024-11-20 17:47:39 TRACE Graph - [Graph] ADDING NODE AppiumTest.SmokeMobileTest()[pri:0, instance:Tests.AppiumTest@36dfbdaf] -1423819244
2024-11-20 17:47:39 TRACE Graph - [Graph] ================ SORTING
2024-11-20 17:47:39 TRACE Graph - [Graph] =============== DONE SORTING
2024-11-20 17:47:39 TRACE Graph - [Graph] ====== SORTED NODES
2024-11-20 17:47:39 TRACE Graph - [Graph] ====== END SORTED NODES
2024-11-20 17:47:39 INFO logsUtils - Total Execution Time is: 0 Min 21 Sec 342 Mills
2024-11-20 17:47:39 INFO logsUtils - ------------------------------------------
2024-11-20 17:47:39 INFO logsUtils - ------- Ellithium Engine TearDown -------
2024-11-20 17:47:39 INFO logsUtils - ------------------------------------------
2024-11-20 17:47:39 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-20 17:47:39 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-20 17:47:39 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-20 17:47:39 INFO logsUtils - Allure folder exists at: C:\Users\lenovo\.m2\repository\allure-Ellithium
2024-11-20 17:47:39 INFO logsUtils - Found Allure binary directory: C:\Users\lenovo\.m2\repository\allure-Ellithium\-2.30.0\bin
2024-11-20 17:47:39 INFO logsUtils - Attempting to execute command: C:\Users\lenovo\.m2\repository\allure-Ellithium\-2.30.0\bin\allure generate --single-file --name "Test Report" -o .\LastReport\ .\Test-Output/Reports/Allure/allure-results\
2024-11-20 17:47:41 INFO logsUtils - Command executed successfully. Exit code: 0
2024-11-20 17:47:41 INFO logsUtils - Getting Timestamp: 2024-11-20-5-47-41PM
2024-11-20 17:47:41 INFO logsUtils - Successfully loaded properties file: src\main\resources\properties\allure
2024-11-20 17:47:41 INFO logsUtils - Attempting to execute command: start Test-Output\Reports\Allure\allure-report\Ellithium-Test-Report-2024-11-20-5-47-41PM.html
2024-11-20 17:47:41 INFO logsUtils - Command executed successfully. Exit code: 0
2 changes: 1 addition & 1 deletion Test-Output/UpdateChecker/checker.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"LastRunDate": "2024-11-18"
"LastRunDate": "2024-11-20"
}
6 changes: 3 additions & 3 deletions TestNGRunner.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Framework Test" verbose="1" data-provider-thread-count="3" >
<suite name="Framework Test" verbose="1" data-provider-thread-count="1" >
<test name="ِMobile Android Test">
<classes>
<class name="Tests.AppiumTest"></class>
Expand All @@ -8,8 +8,8 @@
</test>
<!-- <test name="Web UI Test">-->
<!-- <classes>-->
<!-- <class name="Tests.loginTests"/>-->
<!--&lt;!&ndash; <class name="Runner.TestRunner"></class>&ndash;&gt;-->
<!--&lt;!&ndash; <class name="Tests.loginTests"/>&ndash;&gt;-->
<!-- <class name="Runner.TestRunner"></class>-->
<!--&lt;!&ndash; <class name="Tests.DetailsTests"></class>&ndash;&gt;-->
<!-- </classes>-->
<!-- </test>-->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"21b64650-22a5-48a7-ad48-09b850a8b422","name":"Default Suite","children":["b00e37a1-7c3e-4421-aad6-1a607a66dea5","57dc0149-34ca-4d7c-b23b-b96d481f925c"],"befores":[],"afters":[],"start":1732044715641,"stop":1732044715823}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"uuid":"2f0ea957-6756-44ac-9fdc-368c640ba345","historyId":"2e68743eb501f62d24da29a6febe0928","fullName":"Tests.AppiumTest.SmokeMobileTest","labels":[{"name":"package","value":"Tests.AppiumTest"},{"name":"testClass","value":"Tests.AppiumTest"},{"name":"testMethod","value":"SmokeMobileTest"},{"name":"parentSuite","value":"Default Suite"},{"name":"suite","value":"Ellithium"},{"name":"subSuite","value":"Tests.AppiumTest"},{"name":"host","value":"Abdelrhman-laptop"},{"name":"thread","value":"4216@Abdelrhman-laptop.main(1)"},{"name":"framework","value":"testng"},{"name":"language","value":"java"}],"links":[],"name":"Just testing the Ability to run tests on mobile, I made it fails to check the Attached Screenshot","status":"broken","statusDetails":{"known":false,"muted":false,"flaky":false,"message":"Cannot invoke \"Ellithium.core.driver.DriverType.ordinal()\" because the return value of \"Ellithium.config.managment.ConfigContext.getDriverType()\" is null","trace":"java.lang.NullPointerException: Cannot invoke \"Ellithium.core.driver.DriverType.ordinal()\" because the return value of \"Ellithium.config.managment.ConfigContext.getDriverType()\" is null\r\n\tat Ellithium.core.driver.DriverFactory.getCurrentDriver(DriverFactory.java:92)\r\n\tat Ellithium.core.execution.listener.CustomTestNGListener.afterInvocation(CustomTestNGListener.java:89)\r\n\tat org.testng.internal.invokers.InvokedMethodListenerInvoker.invokeListener(InvokedMethodListenerInvoker.java:59)\r\n\tat org.testng.internal.invokers.BaseInvoker.runInvokedMethodListeners(BaseInvoker.java:82)\r\n\tat org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:746)\r\n\tat org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:230)\r\n\tat org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:63)\r\n\tat org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:992)\r\n\tat org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:203)\r\n\tat org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:154)\r\n\tat org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:134)\r\n\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1596)\r\n\tat org.testng.TestRunner.privateRun(TestRunner.java:739)\r\n\tat org.testng.TestRunner.run(TestRunner.java:614)\r\n\tat org.testng.SuiteRunner.runTest(SuiteRunner.java:421)\r\n\tat org.testng.SuiteRunner.runSequentially(SuiteRunner.java:413)\r\n\tat org.testng.SuiteRunner.privateRun(SuiteRunner.java:373)\r\n\tat org.testng.SuiteRunner.run(SuiteRunner.java:312)\r\n\tat org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)\r\n\tat org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)\r\n\tat org.testng.TestNG.runSuitesSequentially(TestNG.java:1274)\r\n\tat org.testng.TestNG.runSuitesLocally(TestNG.java:1208)\r\n\tat org.testng.TestNG.runSuites(TestNG.java:1112)\r\n\tat org.testng.TestNG.run(TestNG.java:1079)\r\n\tat com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)\r\n\tat com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:105)\r\n"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1732044715735,"stop":1732044715742}
Loading

0 comments on commit c755f41

Please sign in to comment.