From fd2e9095c1c91aacb98dec67d2b62f58ea33379c Mon Sep 17 00:00:00 2001 From: aissel Date: Wed, 11 Oct 2023 10:30:13 +0530 Subject: [PATCH] Fourth commit --- .../TestScripts/Track_Interaction_Export.java | 4 +- .../TestScripts/Track_Medinsght_Export.java | 4 +- test-output/Default suite/Default test.html | 35 +--- test-output/Default suite/Default test.xml | 9 +- test-output/Default suite/testng-failed.xml | 13 ++ test-output/emailable-report.html | 11 +- test-output/index.html | 176 +----------------- .../TEST-TestScripts.Contacts_Count.xml | 65 ++++++- ...T-TestScripts.Track_Interaction_Export.xml | 4 +- ...EST-TestScripts.Track_Medinsght_Export.xml | 4 +- test-output/old/Default suite/classes.html | 110 ----------- .../Default suite/methods-alphabetical.html | 14 +- test-output/old/Default suite/methods.html | 14 +- test-output/old/Default suite/testng.xml.html | 2 +- test-output/old/Default suite/toc.html | 6 +- test-output/old/index.html | 4 +- test-output/testng-failed.xml | 13 ++ test-output/testng-results.xml | 38 +--- 18 files changed, 128 insertions(+), 398 deletions(-) create mode 100644 test-output/Default suite/testng-failed.xml create mode 100644 test-output/testng-failed.xml diff --git a/src/test/java/TestScripts/Track_Interaction_Export.java b/src/test/java/TestScripts/Track_Interaction_Export.java index 4c4ec71..f5c9b62 100644 --- a/src/test/java/TestScripts/Track_Interaction_Export.java +++ b/src/test/java/TestScripts/Track_Interaction_Export.java @@ -36,7 +36,7 @@ public class Track_Interaction_Export ConfigReader config = new ConfigReader(); // Define the sets you want to use String[] sets = {"set1", "set2", "set3", "set4", "set5", "set6", "set7"}; - //String[] sets = {"set"}; + //String[] sets = {"set1"}; Thread.sleep(10000); for (String set : sets) { Thread.sleep(10000); @@ -68,7 +68,7 @@ public class Track_Interaction_Export wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//a[@data-original-title='Export Interaction Detail into Excel format']"))); //File downloadedFile = new File("/home/aissel/git4/exported_file.xlsx"); - File downloadedFile = new File(System.getProperty("user.dir")+"/exported_file.xlsx"); + File downloadedFile = new File(System.getProperty("user.dir")); if (downloadedFile.exists()) { System.out.println("Int_Export Downloaded file exists."); } else { diff --git a/src/test/java/TestScripts/Track_Medinsght_Export.java b/src/test/java/TestScripts/Track_Medinsght_Export.java index d2d37a2..25591d5 100644 --- a/src/test/java/TestScripts/Track_Medinsght_Export.java +++ b/src/test/java/TestScripts/Track_Medinsght_Export.java @@ -38,7 +38,7 @@ public class Track_Medinsght_Export ConfigReader config = new ConfigReader(); // Define the sets you want to use String[] sets = {"set1", "set2", "set3", "set4", "set5", "set6", "set7"}; - //String[] sets = {"set"}; + //String[] sets = {"set1"}; Thread.sleep(10000); for (String set : sets) { Thread.sleep(10000); @@ -70,7 +70,7 @@ public class Track_Medinsght_Export WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div[@class='excelExportIcon sprite_iconSet tooltip-demo tooltop-left']"))); - File downloadedFile = new File(System.getProperty("user.dir")+"/exported_file.xlsx"); + File downloadedFile = new File(System.getProperty("user.dir")); if (downloadedFile.exists()) { System.out.println("Med_Export Downloaded file exists."); } else { diff --git a/test-output/Default suite/Default test.html b/test-output/Default suite/Default test.html index 5a0bfe7..fe8121d 100644 --- a/test-output/Default suite/Default test.html +++ b/test-output/Default suite/Default test.html @@ -55,11 +55,11 @@ function toggleAllBoxes() {

Default test

- + - + - + @@ -75,35 +75,10 @@ function toggleAllBoxes() { - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
Tests passed/Failed/Skipped:6/0/0Tests passed/Failed/Skipped:1/0/0
Started on:Mon Oct 09 11:47:35 IST 2023Started on:Wed Oct 11 10:04:11 IST 2023
Total time:1628 seconds (1628317 ms)
Total time:56 seconds (56064 ms)
Included groups:
Instance
Contactscount
Test class: TestScripts.Contacts_Count
286TestScripts.Contacts_Count@5be46f9d
Discovercount
Test class: TestScripts.Discover_Count
235TestScripts.Discover_Count@7164ca4c
Interactioncount
Test class: TestScripts.Track_Interaction_Count
245TestScripts.Track_Interaction_Count@3f91b517
Interactionexport
Test class: TestScripts.Track_Interaction_Export
289TestScripts.Track_Interaction_Export@479460a6
Medinsightexport
Test class: TestScripts.Track_Medinsght_Export
297TestScripts.Track_Medinsght_Export@4f3bbf68
Medsightcount
Test class: TestScripts.Track_Medinsight_Count
274TestScripts.Track_Medinsight_Count@68df9280
56TestScripts.Track_Medinsght_Export@39ac0c0a

\ No newline at end of file diff --git a/test-output/Default suite/Default test.xml b/test-output/Default suite/Default test.xml index 6d0e7a3..3c18522 100644 --- a/test-output/Default suite/Default test.xml +++ b/test-output/Default suite/Default test.xml @@ -1,10 +1,5 @@ - - - - - - - + + diff --git a/test-output/Default suite/testng-failed.xml b/test-output/Default suite/testng-failed.xml new file mode 100644 index 0000000..6a2fbbf --- /dev/null +++ b/test-output/Default suite/testng-failed.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/test-output/emailable-report.html b/test-output/emailable-report.html index 37ba7c4..2cded5c 100644 --- a/test-output/emailable-report.html +++ b/test-output/emailable-report.html @@ -9,15 +9,10 @@ - +
Test# Passed# Skipped# FailedTime (ms)Included GroupsExcluded Groups
Default suite
Default test6001,628,317
Default test10056,064
- +
ClassMethodStartTime (ms)
Default suite
Default test — passed
TestScripts.Contacts_CountContactscount1696833351614286754
TestScripts.Discover_CountDiscovercount1696832819420235009
TestScripts.Track_Interaction_CountInteractioncount1696833638370245835
TestScripts.Track_Interaction_ExportInteractionexport1696832530283289134
TestScripts.Track_Medinsght_ExportMedinsightexport1696833054430297183
TestScripts.Track_Medinsight_CountMedsightcount1696832255911274370
ClassMethodStartTime (ms)
Default suite
Default test — passed
TestScripts.Track_Medinsght_ExportMedinsightexport169699885144756038
-

Default test

TestScripts.Contacts_Count#Contactscount

back to summary

-

TestScripts.Discover_Count#Discovercount

back to summary

-

TestScripts.Track_Interaction_Count#Interactioncount

back to summary

-

TestScripts.Track_Interaction_Export#Interactionexport

back to summary

-

TestScripts.Track_Medinsght_Export#Medinsightexport

back to summary

-

TestScripts.Track_Medinsight_Count#Medsightcount

back to summary

+

Default test

TestScripts.Track_Medinsght_Export#Medinsightexport

back to summary

diff --git a/test-output/index.html b/test-output/index.html index 855fdd8..7bf2064 100644 --- a/test-output/index.html +++ b/test-output/index.html @@ -91,7 +91,7 @@
@@ -142,51 +117,6 @@
-
-
- - TestScripts.Track_Interaction_Export -
-
-
-
- - - Interactionexport -
-
-
-
-
-
- - TestScripts.Contacts_Count -
-
-
-
- - - Contactscount -
-
-
-
-
-
- - TestScripts.Discover_Count -
-
-
-
- - - Discovercount -
-
-
-
@@ -202,40 +132,10 @@
-
-
- - TestScripts.Track_Medinsight_Count -
-
-
-
- - - Medsightcount -
-
-
-
-
-
- - TestScripts.Track_Interaction_Count -
-
-
-
- - - Interactioncount -
-
-
-
- /tmp/testng-eclipse--287265599/testng-customsuite.xml + /tmp/testng-eclipse-194801848/testng-customsuite.xml
@@ -244,14 +144,7 @@
 <suite name="Default suite" guice-stage="DEVELOPMENT">
   <test thread-count="5" name="Default test" verbose="2">
     <classes>
-      <class name="Utilities.readConfigFile"/>
-      <class name="TestScripts.Track_Medinsight_Count"/>
-      <class name="Utilities.ConfigReader"/>
-      <class name="TestScripts.Track_Interaction_Export"/>
-      <class name="TestScripts.Discover_Count"/>
       <class name="TestScripts.Track_Medinsght_Export"/>
-      <class name="TestScripts.Contacts_Count"/>
-      <class name="TestScripts.Track_Interaction_Count"/>
     </classes>
   </test> <!-- Default test -->
 </suite> <!-- Default suite -->
@@ -265,7 +158,7 @@
           
  • - Default test (8 classes) + Default test (1 class)
@@ -291,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, 'Medinsightexport') data.setCell(0, 2, 'TestScripts.Track_Medinsght_Export') -data.setCell(0, 3, 297183); -data.setCell(1, 0, 1) -data.setCell(1, 1, 'Interactionexport') -data.setCell(1, 2, 'TestScripts.Track_Interaction_Export') -data.setCell(1, 3, 289134); -data.setCell(2, 0, 2) -data.setCell(2, 1, 'Contactscount') -data.setCell(2, 2, 'TestScripts.Contacts_Count') -data.setCell(2, 3, 286754); -data.setCell(3, 0, 3) -data.setCell(3, 1, 'Medsightcount') -data.setCell(3, 2, 'TestScripts.Track_Medinsight_Count') -data.setCell(3, 3, 274370); -data.setCell(4, 0, 4) -data.setCell(4, 1, 'Interactioncount') -data.setCell(4, 2, 'TestScripts.Track_Interaction_Count') -data.setCell(4, 3, 245835); -data.setCell(5, 0, 5) -data.setCell(5, 1, 'Discovercount') -data.setCell(5, 2, 'TestScripts.Discover_Count') -data.setCell(5, 3, 235009); +data.setCell(0, 3, 56038); window.suiteTableData['Default_suite']= { tableData: data, tableDiv: 'times-div-Default_suite'} return data; } - Total running time: 27 minutes + Total running time: 56 seconds
@@ -345,46 +218,11 @@ return data; Methods in chronological order
-
-
TestScripts.Track_Medinsight_Count
-
- Medsightcount - 0 ms -
-
-
-
TestScripts.Track_Interaction_Export
-
- Interactionexport - 274372 ms -
-
-
-
TestScripts.Discover_Count
-
- Discovercount - 563509 ms -
-
TestScripts.Track_Medinsght_Export
Medinsightexport - 798519 ms -
-
-
-
TestScripts.Contacts_Count
-
- Contactscount - 1095703 ms -
-
-
-
TestScripts.Track_Interaction_Count
-
- Interactioncount - 1382459 ms + 0 ms
diff --git a/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml b/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml index 3872da7..5fa8d05 100644 --- a/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml +++ b/test-output/junitreports/TEST-TestScripts.Contacts_Count.xml @@ -1,5 +1,66 @@ - - + + + + + + diff --git a/test-output/junitreports/TEST-TestScripts.Track_Interaction_Export.xml b/test-output/junitreports/TEST-TestScripts.Track_Interaction_Export.xml index 3816a36..d20a18b 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 d48b93d..45df4be 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/old/Default suite/classes.html b/test-output/old/Default suite/classes.html index ee014ef..2588f35 100644 --- a/test-output/old/Default suite/classes.html +++ b/test-output/old/Default suite/classes.html @@ -4,94 +4,6 @@ Method name Groups -TestScripts.Track_Medinsight_Count -   - -@Test - - -  -Medsightcount -  - -@BeforeClass - - -@BeforeMethod - - -@AfterMethod - - -@AfterClass - - -TestScripts.Track_Interaction_Export -   - -@Test - - -  -Interactionexport -  - -@BeforeClass - - -@BeforeMethod - - -@AfterMethod - - -@AfterClass - - -TestScripts.Discover_Count -   - -@Test - - -  -Discovercount -  - -@BeforeClass - - -@BeforeMethod - - -@AfterMethod - - -@AfterClass - - -TestScripts.Contacts_Count -   - -@Test - - -  -Contactscount -  - -@BeforeClass - - -@BeforeMethod - - -@AfterMethod - - -@AfterClass - - TestScripts.Track_Medinsght_Export    @@ -113,26 +25,4 @@ @AfterClass - -TestScripts.Track_Interaction_Count -   - -@Test - - -  -Interactioncount -  - -@BeforeClass - - -@BeforeMethod - - -@AfterMethod - - -@AfterClass - diff --git a/test-output/old/Default suite/methods-alphabetical.html b/test-output/old/Default suite/methods-alphabetical.html index be0fc92..743b84d 100644 --- a/test-output/old/Default suite/methods-alphabetical.html +++ b/test-output/old/Default suite/methods-alphabetical.html @@ -1,16 +1,6 @@

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/09 12:05:51 0      Contactscountmain@2131597042
23/10/09 11:56:59 -532194      Discovercountmain@2131597042
23/10/09 12:10:38 286756      Interactioncountmain@2131597042
23/10/09 11:52:10 -821331      Interactionexportmain@2131597042
23/10/09 12:00:54 -297184      Medinsightexportmain@2131597042
23/10/09 11:47:35 -1095704      Medsightcountmain@2131597042
23/10/11 10:04:11 0      Medinsightexportmain@1731977615
diff --git a/test-output/old/Default suite/methods.html b/test-output/old/Default suite/methods.html index 19d2f7b..743b84d 100644 --- a/test-output/old/Default suite/methods.html +++ b/test-output/old/Default suite/methods.html @@ -1,16 +1,6 @@

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/09 11:47:35 0      Medsightcountmain@2131597042
23/10/09 11:52:10 274373      Interactionexportmain@2131597042
23/10/09 11:56:59 563510      Discovercountmain@2131597042
23/10/09 12:00:54 798520      Medinsightexportmain@2131597042
23/10/09 12:05:51 1095704      Contactscountmain@2131597042
23/10/09 12:10:38 1382460      Interactioncountmain@2131597042
23/10/11 10:04:11 0      Medinsightexportmain@1731977615
diff --git a/test-output/old/Default suite/testng.xml.html b/test-output/old/Default suite/testng.xml.html index c484c72..d5f0a15 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.readConfigFile"/>
      <class name="TestScripts.Track_Medinsight_Count"/>
      <class name="Utilities.ConfigReader"/>
      <class name="TestScripts.Track_Interaction_Export"/>
      <class name="TestScripts.Discover_Count"/>
      <class name="TestScripts.Track_Medinsght_Export"/>
      <class name="TestScripts.Contacts_Count"/>
      <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.Track_Medinsght_Export"/>
    </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 5727d7e..e58eee3 100644 --- a/test-output/old/Default suite/toc.html +++ b/test-output/old/Default suite/toc.html @@ -9,8 +9,8 @@ - - + @@ -22,7 +22,7 @@
1 test6 classes6 methods:
+
1 class1 method:
  chronological
  alphabetical
  not run (0)
-

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 new file mode 100644 index 0000000..6a2fbbf --- /dev/null +++ b/test-output/testng-failed.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/test-output/testng-results.xml b/test-output/testng-results.xml index 7c0772a..c1f1d13 100644 --- a/test-output/testng-results.xml +++ b/test-output/testng-results.xml @@ -1,47 +1,17 @@ - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - - - - -