From fd5b27e8f430d3ee46be28a24807202501cec56b Mon Sep 17 00:00:00 2001 From: aissel Date: Wed, 25 Oct 2023 10:50:29 +0530 Subject: [PATCH] Sixth commit --- Reports/DCIM_Counts_Check.html | 80 ++--- src/test/java/TestScripts/Contacts_Count.java | 1 + src/test/java/TestScripts/Discover_Count.java | 1 + .../TestScripts/Track_Interaction_Count.java | 1 + .../TestScripts/Track_Interaction_Export.java | 5 +- .../TestScripts/Track_Medinsght_Export.java | 1 + .../TestScripts/Track_Medinsight_Count.java | 1 + src/test/java/Utilities/ExtentReporterNG.java | 76 +++++ test-output/Default suite/Default test.html | 35 +-- test-output/Default suite/Default test.xml | 45 +-- test-output/Default suite/testng-failed.xml | 10 +- test-output/emailable-report.html | 9 +- test-output/index.html | 286 +----------------- .../TEST-TestScripts.Contacts_Count.xml | 4 +- .../TEST-TestScripts.Discover_Count.xml | 4 +- ...ST-TestScripts.Track_Interaction_Count.xml | 4 +- ...T-TestScripts.Track_Interaction_Export.xml | 4 +- ...EST-TestScripts.Track_Medinsght_Export.xml | 4 +- ...EST-TestScripts.Track_Medinsight_Count.xml | 4 +- test-output/old/Default suite/classes.html | 150 --------- .../Default suite/methods-alphabetical.html | 50 +-- .../old/Default suite/methods-not-run.html | 12 - test-output/old/Default suite/methods.html | 50 +-- test-output/old/Default suite/testng.xml.html | 2 +- test-output/old/Default suite/toc.html | 8 +- test-output/old/index.html | 4 +- test-output/testng-failed.xml | 10 +- test-output/testng-results.xml | 131 +------- testng.xml | 20 +- 29 files changed, 226 insertions(+), 786 deletions(-) create mode 100644 src/test/java/Utilities/ExtentReporterNG.java diff --git a/Reports/DCIM_Counts_Check.html b/Reports/DCIM_Counts_Check.html index 8940134..9868c2f 100644 --- a/Reports/DCIM_Counts_Check.html +++ b/Reports/DCIM_Counts_Check.html @@ -46,7 +46,7 @@ @@ -142,36 +117,6 @@
-
-
- - TestScripts.Track_Interaction_Count -
-
-
-
- - - Interactioncount -
-
-
-
-
-
- - TestScripts.Discover_Count -
-
-
-
- - - Discovercount -
-
-
-
@@ -187,55 +132,10 @@
-
-
- - TestScripts.Track_Interaction_Export -
-
-
-
- - - Interactionexport -
-
-
-
-
-
- - TestScripts.Track_Medinsght_Export -
-
-
-
- - - Medinsightexport -
-
-
-
-
-
- - TestScripts.Track_Medinsight_Count -
-
-
-
- - - Medsightcount -
-
-
-
- /tmp/testng-eclipse--668398778/testng-customsuite.xml + /tmp/testng-eclipse--1344557327/testng-customsuite.xml
@@ -244,17 +144,7 @@
 <suite name="Default suite" guice-stage="DEVELOPMENT">
   <test thread-count="5" name="Default test" verbose="2">
     <classes>
-      <class name="Utilities.ConfigurationManager"/>
-      <class name="Utilities.readConfigFile"/>
-      <class name="Utilities.ConsoleOutputToFile"/>
-      <class name="TestScripts.Track_Medinsight_Count"/>
-      <class name="Utilities.ConfigReader"/>
-      <class name="Utilities.BaseTest"/>
-      <class name="TestScripts.Track_Interaction_Export"/>
-      <class name="TestScripts.Discover_Count"/>
       <class name="TestScripts.Contacts_Count"/>
-      <class name="TestScripts.Track_Medinsght_Export"/>
-      <class name="TestScripts.Track_Interaction_Count"/>
     </classes>
   </test> <!-- Default test -->
 </suite> <!-- Default suite -->
@@ -268,7 +158,7 @@
           
  • - Default test (11 classes) + Default test (1 class)
@@ -294,36 +184,16 @@ data.addColumn('number', 'Number'); data.addColumn('string', 'Method'); data.addColumn('string', 'Class'); data.addColumn('number', 'Time (ms)'); -data.addRows(6); +data.addRows(1); data.setCell(0, 0, 0) data.setCell(0, 1, 'Contactscount') data.setCell(0, 2, 'TestScripts.Contacts_Count') -data.setCell(0, 3, 305057); -data.setCell(1, 0, 1) -data.setCell(1, 1, 'Medinsightexport') -data.setCell(1, 2, 'TestScripts.Track_Medinsght_Export') -data.setCell(1, 3, 299114); -data.setCell(2, 0, 2) -data.setCell(2, 1, 'Medsightcount') -data.setCell(2, 2, 'TestScripts.Track_Medinsight_Count') -data.setCell(2, 3, 297953); -data.setCell(3, 0, 3) -data.setCell(3, 1, 'Discovercount') -data.setCell(3, 2, 'TestScripts.Discover_Count') -data.setCell(3, 3, 267505); -data.setCell(4, 0, 4) -data.setCell(4, 1, 'Interactioncount') -data.setCell(4, 2, 'TestScripts.Track_Interaction_Count') -data.setCell(4, 3, 252409); -data.setCell(5, 0, 5) -data.setCell(5, 1, 'Interactionexport') -data.setCell(5, 2, 'TestScripts.Track_Interaction_Export') -data.setCell(5, 3, 62615); +data.setCell(0, 3, 659537); window.suiteTableData['Default_suite']= { tableData: data, tableDiv: 'times-div-Default_suite'} return data; } - Total running time: 24 minutes + Total running time: 10 minutes
@@ -338,63 +208,9 @@ return data;
- 12 ignored methods + 0 ignored methods
-
- Utilities.BaseTest -
- beforeSuite -
- afterSuite -
-
-
-
- TestScripts.Track_Interaction_Count -
- beforeSuite -
- afterSuite -
-
-
-
- TestScripts.Discover_Count -
- beforeSuite -
- afterSuite -
-
-
-
- TestScripts.Contacts_Count -
- beforeSuite -
- afterSuite -
-
-
-
- TestScripts.Track_Interaction_Export -
- beforeSuite -
- afterSuite -
-
-
-
- TestScripts.Track_Medinsght_Export -
- beforeSuite -
- afterSuite -
-
-
@@ -403,104 +219,26 @@ return data;
-
TestScripts.Track_Medinsight_Count
+
TestScripts.Contacts_Count
beforeSuite 0 ms
beforeMethod - 224 ms -
-
- Medsightcount - 231 ms -
-
- afterMethod([TestResult name=Medsightcount status=SUCCESS method=Track_Medinsight_Count.Medsightcount()[pri:0, i...) - 298186 ms -
-
-
-
TestScripts.Track_Interaction_Export
-
- beforeMethod - 298415 ms -
-
- Interactionexport - 298416 ms -
-
- afterMethod([TestResult name=Interactionexport status=SUCCESS method=Track_Interaction_Export.Interactionexport(...) - 361033 ms -
-
-
-
TestScripts.Discover_Count
-
- beforeMethod - 361110 ms -
-
- Discovercount - 361111 ms -
-
- afterMethod([TestResult name=Discovercount status=SUCCESS method=Discover_Count.Discovercount()[pri:0, instance:...) - 628619 ms -
-
-
-
TestScripts.Contacts_Count
-
- beforeMethod - 628692 ms + 220 ms
Contactscount - 628693 ms + 226 ms
afterMethod([TestResult name=Contactscount status=SUCCESS method=Contacts_Count.Contactscount()[pri:0, instance:...) - 933752 ms + 659765 ms
-
-
-
TestScripts.Track_Medinsght_Export
-
- beforeMethod - 933833 ms -
-
- Medinsightexport - 933834 ms -
-
- afterMethod([TestResult name=Medinsightexport status=SUCCESS method=Track_Medinsght_Export.Medinsightexport()[pr...) - 1232949 ms -
-
-
-
TestScripts.Track_Interaction_Count
-
- beforeMethod - 1232999 ms -
-
- Interactioncount - 1232999 ms -
-
- afterMethod([TestResult name=Interactioncount status=SUCCESS method=Track_Interaction_Count.Interactioncount()[p...) - 1485410 ms -
-
-
-
TestScripts.Track_Medinsight_Count
afterSuite - 1485508 ms + 660218 ms
diff --git a/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml b/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml index 0f00137..c08c1b6 100644 --- a/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml +++ b/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml @@ -1,5 +1,5 @@ - - + + diff --git a/test-output/junitreports/TEST-TestScripts.Discover_Count.xml b/test-output/junitreports/TEST-TestScripts.Discover_Count.xml index 06f74db..df0df9d 100644 --- a/test-output/junitreports/TEST-TestScripts.Discover_Count.xml +++ b/test-output/junitreports/TEST-TestScripts.Discover_Count.xml @@ -1,5 +1,5 @@ - - + + diff --git a/test-output/junitreports/TEST-TestScripts.Track_Interaction_Count.xml b/test-output/junitreports/TEST-TestScripts.Track_Interaction_Count.xml index 336b319..b748c37 100644 --- a/test-output/junitreports/TEST-TestScripts.Track_Interaction_Count.xml +++ b/test-output/junitreports/TEST-TestScripts.Track_Interaction_Count.xml @@ -1,5 +1,5 @@ - - + + diff --git a/test-output/junitreports/TEST-TestScripts.Track_Interaction_Export.xml b/test-output/junitreports/TEST-TestScripts.Track_Interaction_Export.xml index a59962a..3933a77 100644 --- a/test-output/junitreports/TEST-TestScripts.Track_Interaction_Export.xml +++ b/test-output/junitreports/TEST-TestScripts.Track_Interaction_Export.xml @@ -1,5 +1,5 @@ - - + + diff --git a/test-output/junitreports/TEST-TestScripts.Track_Medinsght_Export.xml b/test-output/junitreports/TEST-TestScripts.Track_Medinsght_Export.xml index e2af208..a0cc55e 100644 --- a/test-output/junitreports/TEST-TestScripts.Track_Medinsght_Export.xml +++ b/test-output/junitreports/TEST-TestScripts.Track_Medinsght_Export.xml @@ -1,5 +1,5 @@ - - + + diff --git a/test-output/junitreports/TEST-TestScripts.Track_Medinsight_Count.xml b/test-output/junitreports/TEST-TestScripts.Track_Medinsight_Count.xml index 648cfa3..c084480 100644 --- a/test-output/junitreports/TEST-TestScripts.Track_Medinsight_Count.xml +++ b/test-output/junitreports/TEST-TestScripts.Track_Medinsight_Count.xml @@ -1,5 +1,5 @@ - - + + diff --git a/test-output/old/Default suite/classes.html b/test-output/old/Default suite/classes.html index fec985b..e1a4a26 100644 --- a/test-output/old/Default suite/classes.html +++ b/test-output/old/Default suite/classes.html @@ -4,96 +4,6 @@ Method name Groups -TestScripts.Track_Medinsight_Count -   - -@Test - - -  -Medsightcount -  - -@BeforeClass - - -@BeforeMethod - - -  -beforeMethod -  - -@AfterMethod - - -  -afterMethod -  - -@AfterClass - - -TestScripts.Track_Interaction_Export -   - -@Test - - -  -Interactionexport -  - -@BeforeClass - - -@BeforeMethod - - -  -beforeMethod -  - -@AfterMethod - - -  -afterMethod -  - -@AfterClass - - -TestScripts.Discover_Count -   - -@Test - - -  -Discovercount -  - -@BeforeClass - - -@BeforeMethod - - -  -beforeMethod -  - -@AfterMethod - - -  -afterMethod -  - -@AfterClass - - TestScripts.Contacts_Count    @@ -123,64 +33,4 @@ @AfterClass - -TestScripts.Track_Medinsght_Export -   - -@Test - - -  -Medinsightexport -  - -@BeforeClass - - -@BeforeMethod - - -  -beforeMethod -  - -@AfterMethod - - -  -afterMethod -  - -@AfterClass - - -TestScripts.Track_Interaction_Count -   - -@Test - - -  -Interactioncount -  - -@BeforeClass - - -@BeforeMethod - - -  -beforeMethod -  - -@AfterMethod - - -  -afterMethod -  - -@AfterClass - diff --git a/test-output/old/Default suite/methods-alphabetical.html b/test-output/old/Default suite/methods-alphabetical.html index f1fd267..edda6dc 100644 --- a/test-output/old/Default suite/methods-alphabetical.html +++ b/test-output/old/Default suite/methods-alphabetical.html @@ -1,44 +1,14 @@

Methods run, sorted chronologically

>> means before, << means after


Default suite

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
23/10/18 14:27:14 0      Contactscountmain@1262548561
23/10/18 14:22:47 -267582      Discovercountmain@1262548561
23/10/18 14:37:18 604306      Interactioncountmain@1262548561
23/10/18 14:21:44 -330277      Interactionexportmain@1262548561
23/10/18 14:32:19 305141      Medinsightexportmain@1262548561
23/10/18 14:16:46 -628462      Medsightcountmain@1262548561
23/10/18 14:21:44 -330505     <<afterMethod  main@1262548561
23/10/18 14:22:46 -267660     <<afterMethod  main@1262548561
23/10/18 14:27:14 -74     <<afterMethod  main@1262548561
23/10/18 14:32:19 305059     <<afterMethod  main@1262548561
23/10/18 14:37:18 604257     <<afterMethod  main@1262548561
23/10/18 14:41:31 856717     <<afterMethod  main@1262548561
23/10/18 14:41:31 856816 <<afterSuite      main@1262548561
23/10/18 14:16:46 -628469     >>beforeMethod  main@1262548561
23/10/18 14:21:44 -330278     >>beforeMethod  main@1262548561
23/10/18 14:22:47 -267582     >>beforeMethod  main@1262548561
23/10/18 14:27:14 0     >>beforeMethod  main@1262548561
23/10/18 14:32:19 305141     >>beforeMethod  main@1262548561
23/10/18 14:37:18 604306     >>beforeMethod  main@1262548561
23/10/18 14:16:45 -628687 >>beforeSuite      main@1262548561
23/10/25 09:44:52 0      Contactscountmain@820537534
23/10/25 09:55:52 659541     <<afterMethod  main@820537534
23/10/25 09:55:52 659992 <<afterSuite      main@820537534
23/10/25 09:44:52 -6     >>beforeMethod  main@820537534
23/10/25 09:44:52 -223 >>beforeSuite      main@820537534
diff --git a/test-output/old/Default suite/methods-not-run.html b/test-output/old/Default suite/methods-not-run.html index e414379..54b14cb 100644 --- a/test-output/old/Default suite/methods-not-run.html +++ b/test-output/old/Default suite/methods-not-run.html @@ -1,14 +1,2 @@

Methods that were not run

- - - - - - - - - - - -
Utilities.BaseTest.beforeSuite
Utilities.BaseTest.beforeSuite
Utilities.BaseTest.beforeSuite
Utilities.BaseTest.beforeSuite
Utilities.BaseTest.beforeSuite
Utilities.BaseTest.beforeSuite
Utilities.BaseTest.afterSuite
Utilities.BaseTest.afterSuite
Utilities.BaseTest.afterSuite
Utilities.BaseTest.afterSuite
Utilities.BaseTest.afterSuite
Utilities.BaseTest.afterSuite
\ No newline at end of file diff --git a/test-output/old/Default suite/methods.html b/test-output/old/Default suite/methods.html index a53d84d..2cb9acc 100644 --- a/test-output/old/Default suite/methods.html +++ b/test-output/old/Default suite/methods.html @@ -1,44 +1,14 @@

Methods run, sorted chronologically

>> means before, << means after


Default suite

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
23/10/18 14:16:45 0 >>beforeSuite      main@1262548561
23/10/18 14:16:46 218     >>beforeMethod  main@1262548561
23/10/18 14:16:46 225      Medsightcountmain@1262548561
23/10/18 14:21:44 298182     <<afterMethod  main@1262548561
23/10/18 14:21:44 298409     >>beforeMethod  main@1262548561
23/10/18 14:21:44 298410      Interactionexportmain@1262548561
23/10/18 14:22:46 361027     <<afterMethod  main@1262548561
23/10/18 14:22:47 361105     >>beforeMethod  main@1262548561
23/10/18 14:22:47 361105      Discovercountmain@1262548561
23/10/18 14:27:14 628613     <<afterMethod  main@1262548561
23/10/18 14:27:14 628687     >>beforeMethod  main@1262548561
23/10/18 14:27:14 628687      Contactscountmain@1262548561
23/10/18 14:32:19 933746     <<afterMethod  main@1262548561
23/10/18 14:32:19 933828     >>beforeMethod  main@1262548561
23/10/18 14:32:19 933828      Medinsightexportmain@1262548561
23/10/18 14:37:18 1232944     <<afterMethod  main@1262548561
23/10/18 14:37:18 1232993     >>beforeMethod  main@1262548561
23/10/18 14:37:18 1232993      Interactioncountmain@1262548561
23/10/18 14:41:31 1485404     <<afterMethod  main@1262548561
23/10/18 14:41:31 1485503 <<afterSuite      main@1262548561
23/10/25 09:44:52 0 >>beforeSuite      main@820537534
23/10/25 09:44:52 217     >>beforeMethod  main@820537534
23/10/25 09:44:52 223      Contactscountmain@820537534
23/10/25 09:55:52 659764     <<afterMethod  main@820537534
23/10/25 09:55:52 660215 <<afterSuite      main@820537534
diff --git a/test-output/old/Default suite/testng.xml.html b/test-output/old/Default suite/testng.xml.html index 7e52a27..2fc04f7 100644 --- a/test-output/old/Default suite/testng.xml.html +++ b/test-output/old/Default suite/testng.xml.html @@ -1 +1 @@ -testng.xml for Default suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Default suite" guice-stage="DEVELOPMENT">
  <test thread-count="5" name="Default test" verbose="2">
    <classes>
      <class name="Utilities.ConfigurationManager"/>
      <class name="Utilities.readConfigFile"/>
      <class name="Utilities.ConsoleOutputToFile"/>
      <class name="TestScripts.Track_Medinsight_Count"/>
      <class name="Utilities.ConfigReader"/>
      <class name="Utilities.BaseTest"/>
      <class name="TestScripts.Track_Interaction_Export"/>
      <class name="TestScripts.Discover_Count"/>
      <class name="TestScripts.Contacts_Count"/>
      <class name="TestScripts.Track_Medinsght_Export"/>
      <class name="TestScripts.Track_Interaction_Count"/>
    </classes>
  </test> <!-- Default test -->
</suite> <!-- Default suite -->
\ No newline at end of file +testng.xml for Default suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Default suite" guice-stage="DEVELOPMENT">
  <test thread-count="5" name="Default test" verbose="2">
    <classes>
      <class name="TestScripts.Contacts_Count"/>
    </classes>
  </test> <!-- Default test -->
</suite> <!-- Default suite -->
\ No newline at end of file diff --git a/test-output/old/Default suite/toc.html b/test-output/old/Default suite/toc.html index 4bbb201..e58eee3 100644 --- a/test-output/old/Default suite/toc.html +++ b/test-output/old/Default suite/toc.html @@ -9,11 +9,11 @@ - - + +  not run (0) @@ -22,7 +22,7 @@
1 test6 classes6 methods:
+
1 class1 method:
  chronological
  alphabetical
-  not run (12)
0 group
-

diff --git a/test-output/old/index.html b/test-output/old/index.html index d997ee8..e8f52f8 100644 --- a/test-output/old/index.html +++ b/test-output/old/index.html @@ -4,6 +4,6 @@

Test results

Default test (6/0/0) +
Default test (1/0/0) Results
- + -
SuitePassedFailedSkippedtestng.xml
Total600 
Total100 
Default suite600Link
+
100Link
diff --git a/test-output/testng-failed.xml b/test-output/testng-failed.xml index 08e8f86..87302db 100644 --- a/test-output/testng-failed.xml +++ b/test-output/testng-failed.xml @@ -3,11 +3,15 @@ - + - + + + + + - + diff --git a/test-output/testng-results.xml b/test-output/testng-results.xml index ac7fab3..28c2949 100644 --- a/test-output/testng-results.xml +++ b/test-output/testng-results.xml @@ -1,145 +1,40 @@ - + - + - - - + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/testng.xml b/testng.xml index 7f1571f..7dad941 100644 --- a/testng.xml +++ b/testng.xml @@ -1,9 +1,19 @@ - - - - - + + + + + + + + + + + + + + +