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() {
Tests passed/Failed/Skipped: | 6/0/0 | +Tests passed/Failed/Skipped: | 1/0/0 |
Started on: | Mon Oct 09 11:47:35 IST 2023 | +Started 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 |
-- | 286 | -TestScripts.Contacts_Count@5be46f9d |
Discovercount Test class: TestScripts.Discover_Count |
-- | 235 | -TestScripts.Discover_Count@7164ca4c |
Interactioncount Test class: TestScripts.Track_Interaction_Count |
-- | 245 | -TestScripts.Track_Interaction_Count@3f91b517 |
Interactionexport Test class: TestScripts.Track_Interaction_Export |
-- | 289 | -TestScripts.Track_Interaction_Export@479460a6 |
Medinsightexport Test class: TestScripts.Track_Medinsght_Export |
- | 297 | -TestScripts.Track_Medinsght_Export@4f3bbf68 |
Medsightcount Test class: TestScripts.Track_Medinsight_Count |
-- | 274 | -TestScripts.Track_Medinsight_Count@68df9280 | 56 | +TestScripts.Track_Medinsght_Export@39ac0c0a |