From fd224878d54f34728e013594c2f13a78dd373433 Mon Sep 17 00:00:00 2001 From: Arul Date: Thu, 7 Aug 2025 02:40:12 +0530 Subject: [PATCH] Automation base setup done. To Automate Quest Creation --- README.md | 0 pom.xml | 75 ++++++++++++++++++ .../java/com/ghost/temple/CookieManager.java | 43 ++++++++++ .../java/com/ghost/temple/ExcelUtils.java | 27 +++++++ .../com/ghost/temple/ReusableFunctions.java | 41 ++++++++++ .../ghost/temple/driver/DriverManager.java | 44 ++++++++++ .../java/com/ghost/temple/hooks/Hooks.java | 18 +++++ src/main/resources/testData.xlsx | Bin 0 -> 6221 bytes src/test/java/com/ghost/temple/AppTest.java | 10 +++ src/test/java/com/ghost/temple/BaseTest.java | 24 ++++++ .../java/com/ghost/temple/TestRunner.java | 16 ++++ .../com/ghost/temple/pages/QuestCreator.java | 21 +++++ .../temple/stepdefs/QuestCreatorStepDefs.java | 29 +++++++ .../resources/features/questCreator.feature | 5 ++ .../com/ghost/temple/CookieManager.class | Bin 0 -> 3019 bytes .../classes/com/ghost/temple/ExcelUtils.class | Bin 0 -> 2307 bytes .../com/ghost/temple/ReusableFunctions.class | Bin 0 -> 2443 bytes .../ghost/temple/driver/DriverManager.class | Bin 0 -> 3237 bytes .../com/ghost/temple/hooks/Hooks.class | Bin 0 -> 629 bytes target/classes/testData.xlsx | Bin 0 -> 6221 bytes target/cucumber-report.html | 50 ++++++++++++ .../compile/default-compile/createdFiles.lst | 2 + .../compile/default-compile/inputFiles.lst | 5 ++ .../default-testCompile/createdFiles.lst | 4 + .../default-testCompile/inputFiles.lst | 5 ++ .../TEST-com.ghost.temple.AppTest.xml | 62 +++++++++++++++ .../TEST-com.ghost.temple.TestRunner.xml | 62 +++++++++++++++ .../com.ghost.temple.AppTest.txt | 4 + .../com.ghost.temple.TestRunner.txt | 4 + .../com/ghost/temple/AppTest.class | Bin 0 -> 585 bytes .../com/ghost/temple/BaseTest.class | Bin 0 -> 887 bytes .../com/ghost/temple/TestRunner.class | Bin 0 -> 651 bytes .../com/ghost/temple/pages/QuestCreator.class | Bin 0 -> 999 bytes .../stepdefs/QuestCreatorStepDefs.class | Bin 0 -> 1251 bytes .../features/questCreator.feature | 5 ++ 35 files changed, 556 insertions(+) create mode 100644 README.md create mode 100644 pom.xml create mode 100644 src/main/java/com/ghost/temple/CookieManager.java create mode 100644 src/main/java/com/ghost/temple/ExcelUtils.java create mode 100644 src/main/java/com/ghost/temple/ReusableFunctions.java create mode 100644 src/main/java/com/ghost/temple/driver/DriverManager.java create mode 100644 src/main/java/com/ghost/temple/hooks/Hooks.java create mode 100644 src/main/resources/testData.xlsx create mode 100644 src/test/java/com/ghost/temple/AppTest.java create mode 100644 src/test/java/com/ghost/temple/BaseTest.java create mode 100644 src/test/java/com/ghost/temple/TestRunner.java create mode 100644 src/test/java/com/ghost/temple/pages/QuestCreator.java create mode 100644 src/test/java/com/ghost/temple/stepdefs/QuestCreatorStepDefs.java create mode 100644 src/test/resources/features/questCreator.feature create mode 100644 target/classes/com/ghost/temple/CookieManager.class create mode 100644 target/classes/com/ghost/temple/ExcelUtils.class create mode 100644 target/classes/com/ghost/temple/ReusableFunctions.class create mode 100644 target/classes/com/ghost/temple/driver/DriverManager.class create mode 100644 target/classes/com/ghost/temple/hooks/Hooks.class create mode 100644 target/classes/testData.xlsx create mode 100644 target/cucumber-report.html create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst create mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst create mode 100644 target/surefire-reports/TEST-com.ghost.temple.AppTest.xml create mode 100644 target/surefire-reports/TEST-com.ghost.temple.TestRunner.xml create mode 100644 target/surefire-reports/com.ghost.temple.AppTest.txt create mode 100644 target/surefire-reports/com.ghost.temple.TestRunner.txt create mode 100644 target/test-classes/com/ghost/temple/AppTest.class create mode 100644 target/test-classes/com/ghost/temple/BaseTest.class create mode 100644 target/test-classes/com/ghost/temple/TestRunner.class create mode 100644 target/test-classes/com/ghost/temple/pages/QuestCreator.class create mode 100644 target/test-classes/com/ghost/temple/stepdefs/QuestCreatorStepDefs.class create mode 100644 target/test-classes/features/questCreator.feature diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..fb2495b --- /dev/null +++ b/pom.xml @@ -0,0 +1,75 @@ + + + 4.0.0 + com.ghost.temple + ghost-temple-automation + jar + 1.0-SNAPSHOT + ghost-temple-automation + + + + + junit + junit + 4.13.2 + test + + + + + io.cucumber + cucumber-java + 7.15.0 + + + io.cucumber + cucumber-junit + 7.15.0 + test + + + + + org.seleniumhq.selenium + selenium-java + 4.21.0 + + + + + io.github.bonigarcia + webdrivermanager + 5.7.0 + + + + + org.apache.poi + poi + 5.2.3 + + + org.apache.poi + poi-ooxml + 5.2.3 + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.10.1 + + 17 + 17 + + + + + diff --git a/src/main/java/com/ghost/temple/CookieManager.java b/src/main/java/com/ghost/temple/CookieManager.java new file mode 100644 index 0000000..20bf063 --- /dev/null +++ b/src/main/java/com/ghost/temple/CookieManager.java @@ -0,0 +1,43 @@ +package com.ghost.temple; + +import org.openqa.selenium.Cookie; +import org.openqa.selenium.WebDriver; + +import java.io.*; +import java.util.Set; + +public class CookieManager { + + private static final String COOKIE_FILE = "cookies.ser"; + + // Save cookies to file + public static void saveCookies(WebDriver driver) { + try (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(COOKIE_FILE))) { + Set cookies = driver.manage().getCookies(); + oos.writeObject(cookies); + System.out.println("Cookies saved 🍪✅"); + } catch (IOException e) { + e.printStackTrace(); + } + } + + // Load cookies from file + @SuppressWarnings("unchecked") + public static void loadCookies(WebDriver driver, String url) { + File cookieFile = new File(COOKIE_FILE); + if (!cookieFile.exists()) return; + + driver.get(url); // Need to open site before setting cookies + + try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(COOKIE_FILE))) { + Set cookies = (Set) ois.readObject(); + for (Cookie cookie : cookies) { + driver.manage().addCookie(cookie); + } + driver.navigate().refresh(); // Apply cookies + System.out.println("Cookies loaded 🍪🔁"); + } catch (IOException | ClassNotFoundException e) { + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/ghost/temple/ExcelUtils.java b/src/main/java/com/ghost/temple/ExcelUtils.java new file mode 100644 index 0000000..b006b2c --- /dev/null +++ b/src/main/java/com/ghost/temple/ExcelUtils.java @@ -0,0 +1,27 @@ +package com.ghost.temple; + +import org.apache.poi.ss.usermodel.*; +import org.apache.poi.xssf.usermodel.XSSFWorkbook; +import java.io.File; +import java.io.FileInputStream; +import java.util.HashMap; +import java.util.Map; + +public class ExcelUtils { + public static Map fetchData(String sheetName) { + Map data = new HashMap<>(); + try (FileInputStream fis = new FileInputStream("src/main/resources/testData.xlsx"); + Workbook workbook = new XSSFWorkbook(fis)) { + + Sheet sheet = workbook.getSheet(sheetName); + Row header = sheet.getRow(0); + Row values = sheet.getRow(1); + for (int i = 0; i < header.getPhysicalNumberOfCells(); i++) { + data.put(header.getCell(i).getStringCellValue(), values.getCell(i).getStringCellValue()); + } + } catch (Exception e) { + e.printStackTrace(); + } + return data; + } +} \ No newline at end of file diff --git a/src/main/java/com/ghost/temple/ReusableFunctions.java b/src/main/java/com/ghost/temple/ReusableFunctions.java new file mode 100644 index 0000000..a202bde --- /dev/null +++ b/src/main/java/com/ghost/temple/ReusableFunctions.java @@ -0,0 +1,41 @@ +package com.ghost.temple; + +import org.openqa.selenium.*; + +public class ReusableFunctions { + + public static boolean checkWebElement(WebElement element) { + try { + return element.isDisplayed() && element.isEnabled(); + } catch (Exception e) { + return false; + } + } + + public static void click(WebElement element) { + if (checkWebElement(element)) { + element.click(); + } + } + + public static void fillInput(WebElement element, String value) { + if (checkWebElement(element)) { + element.clear(); + element.sendKeys(value); + } + } + + public static void scrollIntoView(WebDriver driver, WebElement element) { + ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element); + } + + // 🌐 NEW: Open a specific URL + public static void openUrl(WebDriver driver, String url) { + try { + driver.get(url); + } catch (Exception e) { + System.out.println("Error navigating to URL: " + url); + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ghost/temple/driver/DriverManager.java b/src/main/java/com/ghost/temple/driver/DriverManager.java new file mode 100644 index 0000000..04e14dc --- /dev/null +++ b/src/main/java/com/ghost/temple/driver/DriverManager.java @@ -0,0 +1,44 @@ +package com.ghost.temple.driver; + +import io.github.bonigarcia.wdm.WebDriverManager; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.firefox.FirefoxOptions; +import java.io.File; + +public class DriverManager { + private static WebDriver driver; + + public static void initDriver() { + if (driver == null) { + WebDriverManager.firefoxdriver().setup(); + + // 🌟 Point to your existing Firefox profile + String userProfile = System.getProperty("user.home") + "/.mozilla/firefox/"; + File profilesDir = new File(userProfile); + File[] profiles = profilesDir.listFiles((dir, name) -> name.endsWith(".default-release")); + + if (profiles == null || profiles.length == 0) { + throw new RuntimeException("No Firefox profile found 😭"); + } + + FirefoxOptions options = new FirefoxOptions(); + options.setProfile(new org.openqa.selenium.firefox.FirefoxProfile(profiles[0])); + + driver = new FirefoxDriver(options); + driver.manage().window().maximize(); + System.out.println("Launched Firefox with real profile 😎"); + } + } + + public static WebDriver getDriver() { + return driver; + } + + public static void quitDriver() { + if (driver != null) { + driver.quit(); + driver = null; + } + } +} diff --git a/src/main/java/com/ghost/temple/hooks/Hooks.java b/src/main/java/com/ghost/temple/hooks/Hooks.java new file mode 100644 index 0000000..10bd6da --- /dev/null +++ b/src/main/java/com/ghost/temple/hooks/Hooks.java @@ -0,0 +1,18 @@ +package com.ghost.temple.hooks; + +import com.ghost.temple.driver.DriverManager; +import io.cucumber.java.After; +import io.cucumber.java.Before; + +public class Hooks { + + @Before + public void setUp() { + DriverManager.initDriver(); + } + + @After + public void tearDown() { + DriverManager.quitDriver(); + } +} diff --git a/src/main/resources/testData.xlsx b/src/main/resources/testData.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1e67f50c2c187447224b3dbe8771b11f0e7436f4 GIT binary patch literal 6221 zcmaJ`2RzjO|37wnLA_A%8Q=|@ih#?O5aw;P4x0~GT?DUC zR~_ys5?fhP0wp4BntmL%I`1OE8TuNvsTP)|qZT3}-=Ql!64!T&Y55H~eQ7}D;bis` z8?ZQu#FT`LMHwa9us18TP^ENiWP9 zd2NJPU`T9>A-C3Zu*lH)G-snSwex7Btx=6`OO182gihj6j|cB*CErYMv#~NxFxKAV zgvV{cI&~(D?6)`bw^StAD{DExaeHizz7*6ahmk3KO(tWEyfqW|X2gHN@i%06C^&2& z*0($$Zs(}|O@@IY^L73W>)!;Ya!>?b4z@0~zsb(fZ*ZPtF2e!h>!21oTFXJjn06CrHV}&C##KRuPXL#3!-SKM$(? z%#^q%k*zY}zD`HPTSdIPEXr@nh^|)^uRo3AMjnP_My+3x4Tv~gi$Qw*OzOfr{d|;A=Z83+V`BimdEZY<^U_+CAwESkxtgpE0 zrLTODCmwwE+ug=({3gQ%W7WO8E~QnIFXoLwv&JxZ{p8nDJ%m}5xp50|S;;FDJz+GJ zdWY%?Pjh@Bon&N;$P}z)3IG|$_l@$19Zg2EJB=DW{0`;C2E6ZTk7iR=*SXdrHSaIN zfFCW0<$K@4nvH$mBP!|3wFj@vj}Qm#f?Ege!;h5)G#QQqH}}4GEMISuLCE0Cn{KF zB?x&MvMARC>&gM^a_|1voCri9-INW-8l4Eb4W2{{e-%1JT|m$c3Y>KJ!P2ckTT29L zi9cw&F-Yob?J?)Nz`I=16aJ-NgZ!17ePUR|W@axrtt;bVUbL&g>xF~I^ zS~z5BviW^LZ{-|?PJN@e0f(4Se7!S`ae{H+^h39&G!swKJh^vRL?b}agADqGwcx1R zCCjW~67x0!Gm~xm-3PoNZVyRwCLaeX^&4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uL4TiSC*7Rr&8u@P0_f*bhszFjdUzqz=R5m{RpdW8_*rkk?JxEV)t_ZX(W1Kf&dEtiHh^zLAswTSCMSt@C0$A$1IB z(7BdW`2n1+j{S{rG>3q0NM*XJ@4nba#Wm43)43J>S3#DoUDGCm`K}PBD7K%Yyk7_W?>KVK z5OBuuYqa-^?M$zW!@YktLcMbTWIG@Aogef}z{U3QT);h?KlJ<6OrEp1>_q z`5yPDp8sl|{(bg~?b9!A0O05^-t%Va`~+tTTr9B9r7)pp%_yYL%k7J-7pt6e)-hD6 z{vS2ZMFAJn^|=5Il>7fSj(?K(Irrb#{oAxo8+p{p|J#%=rjqkb+5cqwGw@un>@(ml z#@%x{a-?U#U5vu#3YHh;LKP3Tlpj^WJG}Z(D4?RQ= A1poj5 literal 0 HcmV?d00001 diff --git a/src/test/java/com/ghost/temple/AppTest.java b/src/test/java/com/ghost/temple/AppTest.java new file mode 100644 index 0000000..d93f23c --- /dev/null +++ b/src/test/java/com/ghost/temple/AppTest.java @@ -0,0 +1,10 @@ +package com.ghost.temple; + +import org.junit.Test; + +public class AppTest { + @Test + public void basicTest() { + System.out.println("Ghost Temple is alive 🔥"); + } +} \ No newline at end of file diff --git a/src/test/java/com/ghost/temple/BaseTest.java b/src/test/java/com/ghost/temple/BaseTest.java new file mode 100644 index 0000000..35f31cb --- /dev/null +++ b/src/test/java/com/ghost/temple/BaseTest.java @@ -0,0 +1,24 @@ +package com.ghost.temple; + +import io.github.bonigarcia.wdm.WebDriverManager; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.junit.After; +import org.junit.Before; + +public class BaseTest { + protected WebDriver driver; + + @Before + public void setUp() { + WebDriverManager.firefoxdriver().setup(); + driver = new FirefoxDriver(); + } + + @After + public void tearDown() { + if (driver != null) { + driver.quit(); + } + } +} \ No newline at end of file diff --git a/src/test/java/com/ghost/temple/TestRunner.java b/src/test/java/com/ghost/temple/TestRunner.java new file mode 100644 index 0000000..c998ef8 --- /dev/null +++ b/src/test/java/com/ghost/temple/TestRunner.java @@ -0,0 +1,16 @@ +package com.ghost.temple; + +import org.junit.runner.RunWith; +import io.cucumber.junit.Cucumber; +import io.cucumber.junit.CucumberOptions; + +@RunWith(Cucumber.class) +@CucumberOptions( + features = "src/test/resources/features", + glue = {"com.ghost.temple.stepdefs", "com.ghost.temple.hooks"}, //including Hooks + plugin = { "pretty", "html:target/cucumber-report.html" }, + monochrome = true +) + +public class TestRunner { +} diff --git a/src/test/java/com/ghost/temple/pages/QuestCreator.java b/src/test/java/com/ghost/temple/pages/QuestCreator.java new file mode 100644 index 0000000..2c2402e --- /dev/null +++ b/src/test/java/com/ghost/temple/pages/QuestCreator.java @@ -0,0 +1,21 @@ +package com.ghost.temple.pages; + +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; + +public class QuestCreator { + + WebDriver driver; + private By addQuestBtnLocator = By.xpath("//a[@href='/equipment']/button[contains(text(),'View All')]"); + + public QuestCreator(WebDriver driver) { + this.driver = driver; + } + + public void clickAddQuest() { + WebElement addQuestBtn = driver.findElement(addQuestBtnLocator); + addQuestBtn.click(); + } + +} diff --git a/src/test/java/com/ghost/temple/stepdefs/QuestCreatorStepDefs.java b/src/test/java/com/ghost/temple/stepdefs/QuestCreatorStepDefs.java new file mode 100644 index 0000000..9f60940 --- /dev/null +++ b/src/test/java/com/ghost/temple/stepdefs/QuestCreatorStepDefs.java @@ -0,0 +1,29 @@ +package com.ghost.temple.stepdefs; + +import com.ghost.temple.driver.DriverManager; +import com.ghost.temple.pages.QuestCreator; +import com.ghost.temple.ReusableFunctions; +import io.cucumber.java.en.Given; +import io.cucumber.java.en.When; +import org.openqa.selenium.WebDriver; + +public class QuestCreatorStepDefs { + + WebDriver driver; + QuestCreator questPage; + + public QuestCreatorStepDefs() { + this.driver = DriverManager.getDriver(); + this.questPage = new QuestCreator(driver); + } + + @Given("I open the solo level page") + public void i_open_the_solo_level_page() { + ReusableFunctions.openUrl(driver, "http://192.168.31.73:3000/"); + } + + @When("I click the Add Quest button") + public void i_click_the_add_quest_button() { + questPage.clickAddQuest(); + } +} diff --git a/src/test/resources/features/questCreator.feature b/src/test/resources/features/questCreator.feature new file mode 100644 index 0000000..6bf5f4e --- /dev/null +++ b/src/test/resources/features/questCreator.feature @@ -0,0 +1,5 @@ +Feature: Solo Leveling Quest Management + + Scenario: Open Solo Leveling page and click Add Quest + Given I open the solo level page + When I click the Add Quest button diff --git a/target/classes/com/ghost/temple/CookieManager.class b/target/classes/com/ghost/temple/CookieManager.class new file mode 100644 index 0000000000000000000000000000000000000000..944f3b5e1294f71db74b369c5db99aaff5b4b6d8 GIT binary patch literal 3019 zcma)8+j10D6kR7wrYDnzgd_w)5)u$383KbqP&0s#5F{ZNBrynz*qLc24U_Jnrza5a zpm-NW#S5b16IH%pSx^yCs(kYweDR$Rz_P$~`Z6<-6!_4$bN1P1@3q$6r~kO~^REE5 z;`=DdFi$~9MLEI()kn1{EuPWLbbNUHsGf8L!dnc}aJC7|Yil1<5D{4F8X1;vGMsm^ zd1u72b!}2XRA5Okzstzzvu9O-Wl3u?o}RFBPTbKavl%_!V_C-xeNZ#Cv~EYRK%g?| z4&~P6bUTU)RLk%d3M^_HC`WCv3yf17>ES;SDm+3OtO} z3ffe(BQ}fCk?9-}Cy`d3ye{(gAy9jXqt9O=f)0VjemJc;ZAwqI-n#V5ts6i5b@5CT z>kwD4Ud1DljoN_c5(ffGR=UfWGVYBkHc45PCo@(~SFkx)FLbjaxsR zl6-Dda6+Kfh0P_VC!^(ZLzc74%A2VYT~1@0f)@kTx~7F$7I)9^@SeWj!@K$hddb4Q zosKN`u+KP}>5OTaJkbdCSSdcL1`Jal%1@5#_Nc5Ux!Ou|G z9XP>IWa0Z+3#^!%sseIki-;w?mMxEiG+f-;co}6d(X92;mi#@5Np6MW* z^1E`&oT4d4LXFSPd^#Iszjk(5TjuoS<($~YJ?Fb!V^GWb=v7Mg3z%$r5GME1Cs7J} zC`mBp5~IJpL`*W(_#ebdyF>x3*)o!7=j{yphPRXKK>`a3j^sBx#@DkC2KOZ8nh`5+ zCv|U4jTel6EU%NCvUT>Erf$3X))}DUAAMX}tR5^!CI2b__659zm-&2!UuBq&d3@)8 z2Jf$OB+jScvpjYU;)-kX8t-x%JoI1ZUG)rb3a8z%H}ED$xLDNDQHW#x*P$G^j*0^{ z^RJ=m8kHZL!6JbfGztu^>9~sJKVntQnyXmLYr|#K4tmdup^mjz@o2|ymk}A@(AFyq zZy{nl+d8oUn|T~{(*F+Zdi{`>%+|9%OZ$&FvJT<9bYG^RUg3Ev z6m;I@lYeaTn_uow`E7`91&I(*`xxhZgnlPN3VmF-j_ocw-GfA<=K?}kVrypbWErlb zpU@4slS9`qJVZeD-NaZ|s3A0iX9T*+8_H+!oWNITk#AJMO{BWQ9>fjd85}9Y<-33K z`>2H66p&!&2sT~iFJnnp$a_)gD%4O;z#Bpmak$_VjQb5$)BG*R?}lE{j}55YMe(K?R`n$jB%7lsempZkHPwMVhwfsetn?H=py3$obsJw=Y~FM~Uy3^j22j%ky!Tt0Z5; zsQ3pp3bx-tyMlfN{7pIZH&)$c#37fo3!LPPPh|wAV7x0k+_y7O^ literal 0 HcmV?d00001 diff --git a/target/classes/com/ghost/temple/ExcelUtils.class b/target/classes/com/ghost/temple/ExcelUtils.class new file mode 100644 index 0000000000000000000000000000000000000000..cd81ef295255124eec9d39345b86f37785de0b57 GIT binary patch literal 2307 zcma)8T~iZh6n@@h!yCe)d!x3t zF{>#^h0-CgKisojW6E}{=}NU0xGr!o@0N{X z$@K$HQ@QF`hKhA=aX{HN?Fxs2ky*Q9H99)4hzj&%T{d~a^lbIqG-^S~X3(K*3(Sl_ z`?3|}OKNTf2BT%&8q`Kz!!v>%V1%&wH_iI_jgc8_solnSQ0*nlELa{#qouo&I-Tz; zg^+#nL38>Aj<<~48fFH^m(_cx8@zX)U+N85v%ZL4UNwk&?crO^n&q&r+q!6$gIy?u zwc5L@F8w>Z@UXhoiPJk>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X8YuRno%D3W}`*Ni3?*`h)Kz4R#E54qQ9m5%pkf5*@Z^b+$JgN&e^ zW)SqCqK|@aMbh5}9tGenrawPi~W`^d7DiTnoqu6PcME*em zy}`qnYU3EeHp(O?bDxcd6n5}!2>mnJ$ZSt$=Z|nTf|nTH_!S?|zs2Xk8{EG724B4< zT~Gvast2i~m!BllB)dY=8LH7N#WzRMrG4fU=_N>8R?E-Tu@94YbR4IG$T}5Gf<7j= Z2zK!utvy8dggzPso#M26iW>GY{x545TKfP1 literal 0 HcmV?d00001 diff --git a/target/classes/com/ghost/temple/driver/DriverManager.class b/target/classes/com/ghost/temple/driver/DriverManager.class new file mode 100644 index 0000000000000000000000000000000000000000..73ff12818b5856dad5f5ce0bf8b763f3f6664a6d GIT binary patch literal 3237 zcmb7G=~ok16#qRzCJBQ;5Umsy6@>s{T5Gj5)>=X962O8=qunOSBaBRD;$*_2-EC`E zyKi>0`r}mpYr>Fml-}}ka`(`F#Ns2Tdl9`*k{_efM_x`$d?K*%R_))?N zhOG%Rt)xcGtgYBQozc0Hw6rm9DLu|luWG0%Zb>L-s5z~Usfw-|DWyMtnkQ_A3Rjt7 zW7M=#ikacY8CA)0of}#%tqk$F>n1{~yEQ|z_b`;ThE6b)cbiEbKp84!NboUKM>T`@ z<QbheYB zzEl<`e7K9cp>(Frvzo4}iU+F_KqI!xxCc9EX4DK#RFWZF%0*Ej9%uw|BX-Kzh5HzM zw&^0uu$nqm1c!wC8DvLHT|A)a1acR`L0XXqWbDC%B8xKb4If1=H=gS&ioue55f`-Gqjc3$2`WKi+;y(Hh@E@l+e38BbqJ| zHh?JlMT3tr)GjPC5;`GV4#*h9FWonHA%jku=8{T5lU^$kB{cA_Yyt2t)JIfn0qVrv-KS(&~hk*3NQ2F_JDL z4TFf?%+Zq67smQ15t&WP$JKPihYXb;RdYsSgeMC#JWkBpL<)Lgnw>em7=Q&^0xeKo zel_QLlaUj=B4tDXog!BXhAhljuz1T!CF9O*wnwuVRuz&IdrGH-FaI|kM2i-a0-5fj zFm(K%fuyry&{h+py=uleyd<0>av*|s2asXY?V2QxuQR#)@g=72B^fV^29ygirLC*! zcv5X9D&4YZ35!7po%G=~;`q)aA69d^9k%G4RbPMy&%TCcb3b)TR?W}F7nO<&>m`S3W5AczM4;ePkv7Kg& znWJ2ZI^~d}I;0wGb2OKU6k{+?vcT}z zWQNaIU;dwN$fa%PpF5uCZdKO@HJeAOEAV~|E(GXq^0|yxaDfD$k$_I6Lx#bvZe7i0 zc~-*L#05owl`31pw+tJWRwb%%F{0`AIEO^;j?+q0m+1hc_KM3AJ*}i?x~0*#pWYPu zWkT9Ejli$;umUoDS2#jHs_0pE6|f4`^yWuR-k7Z=XXPZja0Ru0;`|Kirm$`njj`Z{ z88ppc+cY|Y$`tON!o5dk(G{a0k!brh>;|T=x3}X4d>z*>p=uUAvEYGe9Q z(ifgZG}ckJeHwjJcw}f6$7A7X4E=^$iggt!h5d!IXyg)Vr;bsRupqvu_h2G}_ zyv2#Qf~0=Dn1>YyJ&QWBxPfY?;PccbDt@lSpo4r1mDox}hA55pf-{j;8Cb9;AcoM( zBSMiyB&j|4>J(o8X;CV5j`bQ>1sADg@saR0!5~KH9Y_CNyhp!cB0eSAC47M|@fArL Z=D{lT@2x$E*1uMEMFxseRxRi))w+Nn!>CF*UeOjb=I+BIR7&-=x|wG^3Fs)L|A z427(q;UcYP5;_~GD@dthX9Q8bXKJ%9UW5vH&C1OnsU@c^< JMbaFWz5qZ(e5e2b literal 0 HcmV?d00001 diff --git a/target/classes/testData.xlsx b/target/classes/testData.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1e67f50c2c187447224b3dbe8771b11f0e7436f4 GIT binary patch literal 6221 zcmaJ`2RzjO|37wnLA_A%8Q=|@ih#?O5aw;P4x0~GT?DUC zR~_ys5?fhP0wp4BntmL%I`1OE8TuNvsTP)|qZT3}-=Ql!64!T&Y55H~eQ7}D;bis` z8?ZQu#FT`LMHwa9us18TP^ENiWP9 zd2NJPU`T9>A-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(Irrb#{oAxo8+p{p|J#%=rjqkb+5cqwGw@un>@(ml z#@%x{a-?U#U5vu#3YHh;LKP3Tlpj^WJG}Z(D4?RQ= A1poj5 literal 0 HcmV?d00001 diff --git a/target/cucumber-report.html b/target/cucumber-report.html new file mode 100644 index 0000000..7e27be3 --- /dev/null +++ b/target/cucumber-report.html @@ -0,0 +1,50 @@ + + + + Cucumber + + + + + + +
+
+ + + + diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..8c28125 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +com/ghost/temple/ExcelUtils.class +com/ghost/temple/ReusableFunctions.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..62eb2de --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,5 @@ +/home/arul/ghost-temple-automation/ghost-temple-automation/src/main/java/com/ghost/temple/ReusableFunctions.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/main/java/com/ghost/temple/hooks/Hooks.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/main/java/com/ghost/temple/driver/DriverManager.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/main/java/com/ghost/temple/CookieManager.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/main/java/com/ghost/temple/ExcelUtils.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..eebf0df --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,4 @@ +com/ghost/temple/pages/QuestCreator.class +com/ghost/temple/TestRunner.class +com/ghost/temple/AppTest.class +com/ghost/temple/BaseTest.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..db40b83 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,5 @@ +/home/arul/ghost-temple-automation/ghost-temple-automation/src/test/java/com/ghost/temple/pages/QuestCreator.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/test/java/com/ghost/temple/stepdefs/QuestCreatorStepDefs.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/test/java/com/ghost/temple/AppTest.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/test/java/com/ghost/temple/BaseTest.java +/home/arul/ghost-temple-automation/ghost-temple-automation/src/test/java/com/ghost/temple/TestRunner.java diff --git a/target/surefire-reports/TEST-com.ghost.temple.AppTest.xml b/target/surefire-reports/TEST-com.ghost.temple.AppTest.xml new file mode 100644 index 0000000..71d33c4 --- /dev/null +++ b/target/surefire-reports/TEST-com.ghost.temple.AppTest.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-com.ghost.temple.TestRunner.xml b/target/surefire-reports/TEST-com.ghost.temple.TestRunner.xml new file mode 100644 index 0000000..3adf6e5 --- /dev/null +++ b/target/surefire-reports/TEST-com.ghost.temple.TestRunner.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/com.ghost.temple.AppTest.txt b/target/surefire-reports/com.ghost.temple.AppTest.txt new file mode 100644 index 0000000..e7aa08b --- /dev/null +++ b/target/surefire-reports/com.ghost.temple.AppTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.ghost.temple.AppTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec diff --git a/target/surefire-reports/com.ghost.temple.TestRunner.txt b/target/surefire-reports/com.ghost.temple.TestRunner.txt new file mode 100644 index 0000000..f1bb658 --- /dev/null +++ b/target/surefire-reports/com.ghost.temple.TestRunner.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.ghost.temple.TestRunner +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.695 sec diff --git a/target/test-classes/com/ghost/temple/AppTest.class b/target/test-classes/com/ghost/temple/AppTest.class new file mode 100644 index 0000000000000000000000000000000000000000..4ad0b0efbde372bd13b7841b4d171d6937936bad GIT binary patch literal 585 zcmZ{i%Wl&^6o&sv(>gYWgoHwy-ke>+f?0MEK&p^nW3{M>vY(hyGLb!F+2cyQ4I3Vy zRRt0fJOJ;~S3sO`A{8X?;*8Jj`;X`N=dW)+0KCE=Km%JInjyBa!_ZlYE5TEt7yM$r zl8I&5d8xFruNk(6qnVEud=Ej02MGTvpL{H>%&5v#)U+GdAZ7UbLTNj(g%sJig+~mB z@0O;t(Nt!6DkD`!B2`y1y8HC~?)Gzl4jy~xhUno5L+>9H1}}HaRFlkbty2$7B1$jD zqnU@N410;m_`*qXnv10PS)Na2Ny9bYm=BVn9V;!*t86ZdshFn}>Bc4z=}Z*L`I}(V zE>+3UkN*c8Gx&2+s$@;yzpS)XnVhLo5#>y4V}(^l6QmQHV!>AxT_|_e)EZ1oRV4DQ zasz~$8DF^X#sIst9rrZA+zS2Z&k)rnp+PN+6b(v&oQ5%QxdN709lN6(P36P#a;C4v9c?YS<{DiSiwqMkFb4(MS<>^l3;#+Bc&2c27)Z ziEEeqw~vgB$i29)lc*Yw3!LaFr))i-CTf5h?ysZ2gVnPMua z(a0}|^%?Olz1w{EQu_UKx<@vvqSpF=b PRm`(A(kx9{Gidz=6Hdai literal 0 HcmV?d00001 diff --git a/target/test-classes/com/ghost/temple/TestRunner.class b/target/test-classes/com/ghost/temple/TestRunner.class new file mode 100644 index 0000000000000000000000000000000000000000..debbf9e7747924402962505eb38c44a2c539c0ad GIT binary patch literal 651 zcmaJ;O=}cE5PiKnyBpW&CQ+lCP5dC2L~t5B`UMj3G#JpZf;sh0Iy1e_bPwG%f&8qT z1P}fIf0S6$F6JO)2CA#-JzjnN`u*c4fVX%uMi2cFl64F)6xdj*3neRM3wgX)>YN0I zZ;UncPN08qI3Hn6V3xaD7NrX$N!LxK<%tgTskK&nf#k@YX@N;*tp3>63++$TqTH7iWZl7qs#=!Z&5V|XZoB4w*SLQ=e{v8Y^t^}wsX8Dx)gX? zQeC|wpWQuT?^>EPf)rw<`)VQWZevefoxIb%ob zgFnC@<#>}aln3hgus6AP&Yp8}@6GQ&KYsz(15Y7_xQ2v|B$gOfPpxx{JC-}(A9|<4 zRt!ror7P7dhPYvNm$A&y$F2>&PI>Q1<)*_r}6Kvv?pJ;mXN~w=Nly7h_8e85&0W)>23L z(j7F-_TpR36|5q!p`fFPdkj0aH{ye#7bvd8XzU0+wgw{LhZ7N~17BFm^BD?OzaLdv z%58i0O>ymC5@j9tu|}Qg`|?~6#pXivC((No0h(z%#3K!lb*y89VSSPP8JZz|BHjL5 zM}%EvcwsDLZ(ZKe2O^r@CEW_PG;HhG35UCJhwe-&X*<&X%&@&!a%QnK?ZXq0S;{(u2r%;Z&eh`-br3uJIs- lcKsTg47U9f#KM}ue?o)b2P-M=Nl`B4A> literal 0 HcmV?d00001 diff --git a/target/test-classes/com/ghost/temple/stepdefs/QuestCreatorStepDefs.class b/target/test-classes/com/ghost/temple/stepdefs/QuestCreatorStepDefs.class new file mode 100644 index 0000000000000000000000000000000000000000..3271be5ac41a7e351b9820002c7753fa0c028aa6 GIT binary patch literal 1251 zcma)+ZBG+H5Xb*p9$Jn=peWDE0isZ~+fqaXH6aiTNqqpc#8=Jry0(kgyK=Y3_c9S7 zn)m_yP{!FS3Q{A!xY^s;+uzLmclN&j`0@?FQ!E=upd*P+6J6+L7&x$xZ0_1#jlZfK z2uCq=KarkP&lo!97fJ?F=t;sb(F>Dd&hZ<(R`)~2m1s0w!K;Bh5&_?ghZnYI*F?b3 zQxmG?Vwj#^DEdK-`%U2;+B_7l@MP5B`=ZkNWUU9+(4WMBi9w_pvTZ>^C7M<7KIA)* z2-QX)Y~=@g&a zeyDSNO-Pcf_#d&>Qn<-5URSEQ%6b0rVm80Lk}c%3j|!`WTrS5AOu3mqPR%7uQ zIyd|()z)8>o_HBGDk6BJgEORyzGJ&3JCJ&Q=Im5;N%`d3mH6kOu8|_LtcxhCx+sUf z>z7?|B;2w-EQYb&$WyW*N-~rbY~AyGWuMhPQItM+A}7v`$JGgsKc_zR2-|gJyAct_ zw=Ipg2ybb;72~ZIeo~g>s^j2xwOWo3wOomm@;%!7*9iOdIKbq#74MD7B%2lMX8qc0 z?D|jA`nr1l?Kv(6t~7-C$%pKvkfd>|L7epp)K!iOdOD<`l_e z^ku$c=w0R$`c81;7^5F)Ie~eyY5ExGCp$nFdXRu=ERe@+A&|j6nlaobd?LoL(5Uf- z#-%4uaqFC>|0TdMdN6WtM#xB!LV^f43{fyg}p%X}A@&Yt< Q3A)&V7HC)^Oac#o0_1c$5dZ)H literal 0 HcmV?d00001 diff --git a/target/test-classes/features/questCreator.feature b/target/test-classes/features/questCreator.feature new file mode 100644 index 0000000..6bf5f4e --- /dev/null +++ b/target/test-classes/features/questCreator.feature @@ -0,0 +1,5 @@ +Feature: Solo Leveling Quest Management + + Scenario: Open Solo Leveling page and click Add Quest + Given I open the solo level page + When I click the Add Quest button