From c3fcd0373a35837bd707ee754544b8229005edc8 Mon Sep 17 00:00:00 2001 From: utkarsh Date: Sun, 1 Feb 2026 22:31:59 +0530 Subject: [PATCH 1/2] Fix issue with [issue/feature name] --- .idea/.gitignore | 3 + .idea/compiler.xml | 13 +++ .idea/encodings.xml | 7 ++ .idea/jarRepositories.xml | 20 ++++ .idea/misc.xml | 12 ++ .idea/vcs.xml | 6 + pom.xml | 95 +++++----------- src/test/java/vanilla_android.java | 93 ++++++++------- src/test/java/vanilla_ios.java | 107 +++++++----------- target/AppTesting-1.0-SNAPSHOT.jar | Bin 0 -> 2062 bytes target/maven-archiver/pom.properties | 3 + .../default-testCompile/createdFiles.lst | 2 + .../default-testCompile/inputFiles.lst | 2 + target/test-classes/vanilla_android.class | Bin 0 -> 4519 bytes target/test-classes/vanilla_ios.class | Bin 0 -> 3989 bytes 15 files changed, 185 insertions(+), 178 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 target/AppTesting-1.0-SNAPSHOT.jar create mode 100644 target/maven-archiver/pom.properties 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/test-classes/vanilla_android.class create mode 100644 target/test-classes/vanilla_ios.class diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..e6f7b76 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..74cb00e --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 8e2731f..968716f 100644 --- a/pom.xml +++ b/pom.xml @@ -10,89 +10,46 @@ UTF-8 + + + 4.11.0 - - - - - - org.seleniumhq.selenium - selenium-java - 3.141.59 - + + + + org.seleniumhq.selenium + selenium-bom + ${selenium.version} + pom + import + + + + - - com.github.lambdatest - lambdatest-tunnel-binary - 1.0.10 - - - - io.github.bonigarcia - webdrivermanager - 4.3.1 - + + + - commons-io - commons-io - 2.11.0 + io.appium + java-client + 8.6.0 + org.seleniumhq.selenium - selenium-support - 2.52.0 - - - io.appium - java-client - 7.6.0 + selenium-java + + org.testng testng - 7.6.1 - - - commons-lang - commons-lang - 2.6 - - - - org.apache.commons - commons-lang3 - 3.0 - - - - info.cukes - cucumber-java - 1.2.5 - - - - junit - junit - 4.12 + 7.9.0 test - - org.json - json - 20160810 - - - org.seleniumhq.selenium - selenium-remote-driver - 3.141.59 - - - io.rest-assured - rest-assured - 4.3.0 - diff --git a/src/test/java/vanilla_android.java b/src/test/java/vanilla_android.java index 6009380..1ad8b52 100644 --- a/src/test/java/vanilla_android.java +++ b/src/test/java/vanilla_android.java @@ -1,91 +1,96 @@ import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileBy; -import io.appium.java_client.MobileElement; +//import io.appium.java_client.WebElement; +import org.openqa.selenium.WebElement; +import io.appium.java_client.AppiumBy; +import io.appium.java_client.android.AndroidDriver; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.remote.DesiredCapabilities; import java.net.MalformedURLException; import java.net.URL; +import java.util.HashMap; public class vanilla_android { - public static String userName = System.getenv("LT_USERNAME") == null ? "YOUR_USERNAME" // Add username here - : System.getenv("LT_USERNAME"); - public static String accessKey = System.getenv("LT_ACCESS_KEY") == null ? "YOUR_ACCESS_KEY" // Add accessKey here - : System.getenv("LT_ACCESS_KEY"); + public static String userName = System.getenv("LT_USERNAME") == null ? "YOUR_USERNAME" : System.getenv("LT_USERNAME"); + public static String accessKey = System.getenv("LT_ACCESS_KEY") == null ? "YOUR_ACCESS_KEY" : System.getenv("LT_ACCESS_KEY"); - private static AppiumDriver driver; + static AppiumDriver driver; public static void main(String args[]) throws MalformedURLException, InterruptedException { try { DesiredCapabilities capabilities = new DesiredCapabilities(); - capabilities.setCapability("deviceName", "Galaxy S20"); - capabilities.setCapability("platformVersion", "11"); - capabilities.setCapability("platformName", "Android"); - capabilities.setCapability("isRealMobile", true); - capabilities.setCapability("app", "APP_URL"); // Enter your app url - capabilities.setCapability("deviceOrientation", "PORTRAIT"); - capabilities.setCapability("build", "Java Vanilla - Android"); - capabilities.setCapability("name", "Sample Test Java"); - capabilities.setCapability("console", true); - capabilities.setCapability("network", false); - capabilities.setCapability("visual", true); - capabilities.setCapability("devicelog", true); - - driver = new AppiumDriver( + HashMap ltOptions = new HashMap(); + ltOptions.put("deviceName", "Galaxy.*"); // You can specify a particular model, or use a wildcard. + ltOptions.put("platformVersion", "14"); // Make sure this matches the device's OS version. + ltOptions.put("platformName", "Android"); + ltOptions.put("isRealMobile", true); // Ensures that the test runs on a real device. + ltOptions.put("app", "lt://APP10160622431766424164986229"); // Your app URL from LambdaTest. + ltOptions.put("deviceOrientation", "PORTRAIT"); + ltOptions.put("build", "Java Vanilla - Android"); + ltOptions.put("name", "Sample Test Java"); + ltOptions.put("console", true); + ltOptions.put("autoGrantPermissions", true); // Auto grants permissions on the app. + ltOptions.put("network", false); + ltOptions.put("visual", true); + ltOptions.put("devicelog", true); + capabilities.setCapability("lt:options", ltOptions); + + // Initialize Appium driver with the LambdaTest server URL and capabilities + driver = new AndroidDriver( new URL("https://" + userName + ":" + accessKey + "@mobile-hub.lambdatest.com/wd/hub"), capabilities); - MobileElement color = (MobileElement) driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/color")); + // Interact with elements using their IDs + WebElement color = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/color")); color.click(); - MobileElement text = (MobileElement) driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/Text")); - // Changes the text to proverbial + WebElement text = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/Text")); text.click(); - // toast is visible - MobileElement toast = (MobileElement) driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/toast")); + // Interact with Toast message element + WebElement toast = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/toast")); toast.click(); - // notification is visible - MobileElement notification = (MobileElement) driver - .findElement(MobileBy.id("com.lambdatest.proverbial:id/notification")); + // Interact with Notification element + WebElement notification = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/notification")); notification.click(); - // Open the geolocation page - MobileElement geo = (MobileElement) driver - .findElement(MobileBy.id("com.lambdatest.proverbial:id/geoLocation")); + // Open the Geolocation page + WebElement geo = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/geoLocation")); geo.click(); Thread.sleep(5000); - // takes back to home page - MobileElement el3 = (MobileElement) driver.findElementByAccessibilityId("Home"); - + // Go back to the home page driver.navigate().back(); Thread.sleep(2000); - // Takes to speed test page - MobileElement speedtest = (MobileElement) driver - .findElement(MobileBy.id("com.lambdatest.proverbial:id/speedTest")); + // Navigate to the Speed Test page + WebElement speedtest = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/speedTest")); speedtest.click(); Thread.sleep(5000); driver.navigate().back(); - // Opens the browser - MobileElement browser = (MobileElement) driver.findElement(MobileBy.AccessibilityId("Browser")); + // Open the Browser and perform actions + WebElement browser = driver.findElement(MobileBy.AccessibilityId("Browser")); browser.click(); - MobileElement url = (MobileElement) driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/url")); + WebElement url = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/url")); url.sendKeys("https://www.lambdatest.com"); - MobileElement find = (MobileElement) driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/find")); + + WebElement find = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/find")); find.click(); } catch (AssertionError a) { + // Mark the status as failed if there's an error ((JavascriptExecutor) driver).executeScript("lambda-status=failed"); a.printStackTrace(); + } finally { + // Ensure the driver quits to avoid the session hanging + if (driver != null) { + driver.quit(); + } } - // The driver.quit statement is required, otherwise the test continues to - // execute, leading to a timeout. - driver.quit(); } } diff --git a/src/test/java/vanilla_ios.java b/src/test/java/vanilla_ios.java index cb51dd4..bbf8556 100644 --- a/src/test/java/vanilla_ios.java +++ b/src/test/java/vanilla_ios.java @@ -1,100 +1,77 @@ -import io.appium.java_client.MobileBy; -import io.appium.java_client.MobileElement; +import io.appium.java_client.AppiumBy; import io.appium.java_client.ios.IOSDriver; - +import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; - import java.net.URL; +import java.time.Duration; +import java.util.HashMap; public class vanilla_ios { - public static String userName = System.getenv("LT_USERNAME") == null ? "YOUR_USERNAME" // Add username here - : System.getenv("LT_USERNAME"); - public static String accessKey = System.getenv("LT_ACCESS_KEY") == null ? "YOUR_ACCESS_KEY" // Add accessKey here - : System.getenv("LT_ACCESS_KEY"); + public static String userName = System.getenv("LT_USERNAME") == null ? "YOUR_USERNAME" : System.getenv("LT_USERNAME"); + public static String accessKey = System.getenv("LT_ACCESS_KEY") == null ? "YOUR_ACCESS_KEY" : System.getenv("LT_ACCESS_KEY"); - public static final String URL = "https://" + userName + ":" + accessKey + "@mobile-hub.lambdatest.com/wd/hub"; public static IOSDriver driver = null; public static void main(String[] args) throws Exception { try { DesiredCapabilities caps = new DesiredCapabilities(); - caps.setCapability("platformVersion", "15"); - caps.setCapability("deviceName", "iPhone 12"); - caps.setCapability("isRealMobile", true); - caps.setCapability("app", "APP_URL"); // Enter your app url - caps.setCapability("platformName", "iOS"); - caps.setCapability("build", "Java Vanilla - iOS"); - caps.setCapability("name", "Sample Test Java"); - caps.setCapability("devicelog", true); - caps.setCapability("network", false); + HashMap ltOptions = new HashMap(); + + ltOptions.put("w3c", true); + ltOptions.put("platformName", "iOS"); + ltOptions.put("deviceName", "iPhone.*"); // Updated to a newer model for better stability + ltOptions.put("platformVersion", "17"); + ltOptions.put("isRealMobile", true); + ltOptions.put("app", "lt://APP1016018631760361477812757"); // Use your iOS App URL + ltOptions.put("build", "Java Vanilla - iOS"); + ltOptions.put("name", "Sample Test Java iOS"); + ltOptions.put("devicelog", true); + ltOptions.put("autoAcceptAlerts", true); + ltOptions.put("network", false); + ltOptions.put("visual", true); + + caps.setCapability("lt:options", ltOptions); driver = new IOSDriver( new URL("https://" + userName + ":" + accessKey + "@mobile-hub.lambdatest.com/wd/hub"), caps); - Thread.sleep(2000); - - // Changes color + // Wait utility + WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(30)); - driver.findElement(MobileBy.id("color")).click(); - Thread.sleep(1000); - - // Back to black color - driver.navigate().back(); + // 1. Changes color + wait.until(ExpectedConditions.elementToBeClickable(AppiumBy.id("color"))).click(); - Thread.sleep(1000); + // 2. Changes the text + driver.findElement(AppiumBy.id("Text")).click(); - // Changes the text to proverbial - driver.findElement(MobileBy.id("Text")).click(); - Thread.sleep(1000); + // 3. Toast + driver.findElement(AppiumBy.id("toast")).click(); - // toast is visible - driver.findElement(MobileBy.id("toast")).click(); - Thread.sleep(1000); + // 4. Notification + driver.findElement(AppiumBy.id("notification")).click(); +// Thread.sleep(2000); - // notification is visible - driver.findElement(MobileBy.id("notification")).click(); - Thread.sleep(2000); - - // Open the geolocation page - driver.findElement(MobileBy.id("geoLocation")).click(); - Thread.sleep(4000); - driver.navigate().back(); - Thread.sleep(1000); - - // Takes to speed test page - driver.findElement(MobileBy.id("speedTest")).click(); + // 5. Geolocation + driver.findElement(AppiumBy.id("geoLocation")).click(); Thread.sleep(5000); driver.navigate().back(); - Thread.sleep(1000); - // Opens the browser - MobileElement browser = (MobileElement) driver.findElementByAccessibilityId("Browser"); - browser.click(); - Thread.sleep(3000); - WebDriverWait el7 = new WebDriverWait(driver, 30); - el7.until(ExpectedConditions.elementToBeClickable(MobileBy.id("url"))); - driver.findElementById("url").sendKeys("https://www.lambdatest.com/"); - // Clicks on the text box - WebDriverWait el = new WebDriverWait(driver, 90); - MobileElement el4 = (MobileElement) driver.findElementByAccessibilityId("find"); - el.until(ExpectedConditions.elementToBeClickable(el4)); - el4.click(); - el4.sendKeys("Lambdatest"); - // ((JavascriptExecutor) driver).executeScript("lambda-status=passed"); - driver.quit(); } catch (Exception t) { - System.out.println(t); - driver.quit(); - + System.out.println("Test Failed: " + t.getMessage()); + t.printStackTrace(); + } finally { + if (driver != null) { + driver.quit(); + } } } -} +} \ No newline at end of file diff --git a/target/AppTesting-1.0-SNAPSHOT.jar b/target/AppTesting-1.0-SNAPSHOT.jar new file mode 100644 index 0000000000000000000000000000000000000000..6824ff70af7c1045b9ecccd84af1660b88bf3dac GIT binary patch literal 2062 zcmWIWW@h1HVBlb2@L1;<`|Nw>w2!y0-bG$-U9EFx&TkGfxMKX^X_20nua2kh#nM$)v|4k|CkvV%p@5Y zR0--W$j{ZQ$jx~h5ubnCOrT!>!utn5W0#~Zj}+6;>PkGywk5kU>T*dMF?xp`3u^UX>yhMx^ z?GJ6_%ALdXM`PK;et#Ag!?T+GzIUpf>Oa}Mjtc!%c3$;tYf{t+c9G6C8wI5Om0g2R zMNZ7!Z{{7Nzeo1wHqvD&^?P3%G|7Oo6VYyHD5zxU_T zxh}jMsoks^hg|J-_@sTe97pLr_<9X5&VU%7Ay579?juSS;YI{>=uReChdOCj!U^; zDodxI_%5h2P54V~*QFrWdE6@#)%HZ%ZRJ!;_L#>!Rc}3`zL(@vh1zE|DQ+%)ZU zU0K|HDbC=pGbdT98l>*7@Gy(<3#@SBUo}sAs?(0OH(t%Ya69P=~x z32JEV3wYeBq_xR(>iugi{XGuXwx=GHnz~bZ-obyd2P40hZ#p@Rt7Nr>!ji{7PAe+w zdbmF0mE0BH7;S&Gc5`r3^P3G84iEMIoIWc0BGxeQ^8ef2DrZ}k&8z0J`Bb`V4)^&Nt z+uGlEJtAlAPn=ZM_e;>dWX?tx@6Xmzkre@d-=|I4IiYCUtkVUv0<}v_?_88lQTfrP z+PcN~FT;VRJ7===B8<<5y%t=eX0-5@;_9yr0e@y(VGO?>eKw`%^%85o=hBbo{mY1Z z_jTuH3l*DbO*4fO)t6rMf2O?s;F5Q;{d1yRtmV(V@!!5AKtp)<#qhfJU7~qa{>tZ5 zSv4f3#Dg*!`US5yXGgJ3r(MO152kDWitdSc~trJ@>!I;XWPy4;dlV! zf=QN&r#K$(U-qns?|aK;6V?A_krg&fpSrvX{JwnKcJ*ELY=Q3O5<&?c9nmW;21)Mo zyzQ>OmU;dciJCQe0VjSax)L-CS}Q;T2NJy4QU=1vHdaE;0~v`(Cjs89 QY#`n2K==XZ91buK01=GzPXGV_ literal 0 HcmV?d00001 diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..e8780e7 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=AppTesting +groupId=App +version=1.0-SNAPSHOT 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..9d6976f --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,2 @@ +vanilla_ios.class +vanilla_android.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..0038495 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,2 @@ +D:\LT-appium-java-ADO\src\test\java\vanilla_ios.java +D:\LT-appium-java-ADO\src\test\java\vanilla_android.java diff --git a/target/test-classes/vanilla_android.class b/target/test-classes/vanilla_android.class new file mode 100644 index 0000000000000000000000000000000000000000..0f554d0bd1a815da122af9e63665c835dcb17935 GIT binary patch literal 4519 zcmai2dwd*K75;8sGrO6PvMq%GEuj`j+9unyA#IcLNYc=zq)o}DDJfu`-Mvi)W_PwT zvq=NKP(*${P<;CnQSpI-587&)QUQxt6cs^5QG8qRg{UZ?|A^n6*(4jfEy*u4XU;uy z&+9wq+{vT=yYB%2t@v*gWhmEBVW1LK0`sml$IQ5GW=G=v$!lfG7pPiqWi9_=f%1mN zAq~1fv*V7$ot(_>G2@=JW!B1P;;zg%zKm~>p5@APx0y4OmTmc#^rFy|ifVyVgWdDK zWyd#}-sl!H7ey51I!+OYrsbHGl3UG;)G<#$-)P$A-ihXAN+f1rJ{Hh~T%H!KZRmTY znH|S-8jok`SSV1NvrT`u<7S4W>sd}##~A`;Ev-7v6fmY2Lp#nE&^ohe*Rj$%7IWG1 z2Bc|kap;?jq8{gJSYqHcSUT-o5V|hMv89>i%VVaUm;Jj17B=iGHmD%cq2qjdW#)1^ z8U&WuetSILxoum^%9gg3ZL3zbu5MY=*4DbJwWY0f-C8o%=~zZpVXXRHOJ;r351d%R zkZtQ97#!&A9n{e*P?^kIHqBm1<(rw+`XMuG*|u5VR6pa=DuIe@5b;*#K4E5ZwyYnN zo?oxt(9uR0Qcl*RJ37`1EHLxFv(YuP{x<1mEKkMH)6q_`tn|kn_c|Tx37Ij=%bT_i zq9zjBYC9u3E@hhOqLWi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6O$8;h^$?<*^5*@Qp{H$By2`i+VVKf!MbT z%tsYdJsiN!*%qSy%L1H&(@+~2WuT&FgNA?Bstect#nm$Wn@I%!+aY+|d=dYtiu@l0 CKnOtq literal 0 HcmV?d00001 diff --git a/target/test-classes/vanilla_ios.class b/target/test-classes/vanilla_ios.class new file mode 100644 index 0000000000000000000000000000000000000000..ca665f2745d6030eb3844bbcb5d509a38b88f519 GIT binary patch literal 3989 zcmb7HXH*>575*MYGc1E7ubO39GO`*-zzP+R0V@WCB8deQfl#oWD8urAk!ELBv$G(g zI8NdeIkD{Ya?-2PltfYj$RxH?EGJH{PIY>3Kl3B!#QEOLvb$L86wYDhy*u~a`rUiq zKK`!<9|Euoe~+L9r5ef%lw*;=(i7%{8M94iEY>%CLMD8HMQxU2`FjOQYib8I=mHI{ zHx_eK(m7?u($bcWl}W}tnRI;_+b7eOCr3KXlsRnKmT$>)1e#J&DR5mNJ>y$;?0}gb z?=e#mL{O?@F{MxLOhm90*J+3vScc{E?13>Iu4_xv5zr<~J0tr>1y9|3_NZF=8>UzmuGbwf4NU2s|zm9bRkr6pz zC1m)aT0plBkGqa+*s9}ZfhF??2c?&`Tt~-7fs)2%9h)iDN*|G?-QzMylv+cnW-6s) ztH65OZ;8d)4cGD30%cBM@(zLJ{bn*{%jyA{_NxQ#fM=ILMd*X=j_GJ({>_Z(?=|o&+$K2NO}=;DU=;#ipG6Em1cYusoOvtJ@km`q%$H=U&PKrTr3dUT7f#h8B9+B*s{*+I4U4ol!Rjjo~w>mn2dTl-7Tkd+)fnS zmJF~_Kb{$Gu+8M~i0LzV4GA|Hn;eOesyw*U!1M5YYV+MtGE-f1t;H;gPP{;sxGAur zn3IDMv?HN77>1o$j%;XKTg{H4qOc>1E=6I(n0=xE6F~T@l1tF2G$+zmkHMy zVOCbv9Lh##0Tbh6!B^gA1e$7!`kON#i`<0*Y6o>pvM3X-?GkQNc%g;d+Mw$YD__juF(>N^%VwQiB~Z+8HatJwr2edrod>%Nho__ z`?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%#V@0X|tE%+m8CHND=2mV+UoX>y3 I-xgK;8`a@haR2}S literal 0 HcmV?d00001 From 96da6263feac159d58faf9091651132c5d36d549 Mon Sep 17 00:00:00 2001 From: utkarshbh785 Date: Mon, 16 Mar 2026 16:36:35 +0530 Subject: [PATCH 2/2] Updated pom.xml to the latest version and respective changes in the script --- .DS_Store | Bin 0 -> 6148 bytes .idea/.gitignore | 6 +- .idea/compiler.xml | 24 +- .idea/encodings.xml | 12 +- .idea/jarRepositories.xml | 38 +- .idea/misc.xml | 22 +- README.md | 476 +++++++++--------- pom.xml | 303 ++++++----- src/test/java/vanilla_android.java | 113 ++--- target/AppTest-1.0-SNAPSHOT.jar | Bin 0 -> 1952 bytes target/AppTesting-1.0-SNAPSHOT.jar | Bin 2062 -> 0 bytes target/maven-archiver/pom.properties | 4 +- .../default-testCompile/inputFiles.lst | 4 +- target/test-classes/vanilla_android.class | Bin 4519 -> 4542 bytes target/test-classes/vanilla_ios.class | Bin 3989 -> 4270 bytes 15 files changed, 526 insertions(+), 476 deletions(-) create mode 100644 .DS_Store create mode 100644 target/AppTest-1.0-SNAPSHOT.jar delete mode 100644 target/AppTesting-1.0-SNAPSHOT.jar diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d5aff27118d85db1ee3725ae60445eae6d4e10e1 GIT binary patch literal 6148 zcmeHKOHRWu5PhZr6|w0GA;cnVSs=;@LKRNX6+8MtrBbU@Q1&?r7h%mcI0|pOMvR^VEzxp|iV*p|BGVKFB09`i0y+d{_CUI$7wx=E`4l>4K)*nu)2!S-)_7-i$4)vK%j}F@5qdyxqON-`M!{$N1{8@oZ!TOR-PhIi`5P$S~u$ zve6yfjrwKP%HGH@{D_Ze2hVuI#B!f~kXs`=csJ2jPK{c=D-MbStT7_vj5D@cA=7 z#EkA}yp~T&smT=!#X2D)w2(@PsWj*jBcyWrbImIh>x8KsK@T56nS-8CLS*Ooc}zzr z5_<0nxB^yzPP*;M{(rms{BMi=&J}P4{*?kDD~IKPQ_{V4YjU#J=4|(DVv<)U+?4Pl hZpF-%t@wm38vVIk5DUdRAw4wz5Qs8(=L-C)0-rgAbwU6D literal 0 HcmV?d00001 diff --git a/.idea/.gitignore b/.idea/.gitignore index 26d3352..eaf91e2 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -1,3 +1,3 @@ -# Default ignored files -/shelf/ -/workspace.xml +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml index e6f7b76..64cfb96 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,13 +1,13 @@ - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml index aa00ffa..a156f52 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -1,7 +1,7 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 712ab9d..a468a99 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -1,20 +1,20 @@ - - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 74cb00e..60add33 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,12 +1,12 @@ - - - - - - - + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 747aeeb..fd4f888 100644 --- a/README.md +++ b/README.md @@ -1,238 +1,238 @@ -# Java With Appium ![pw](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge&logo=java&logoColor=white) - -

- -

- -

- Blog -   ⋅   - Docs -   ⋅   - Learning Hub -   ⋅   - Newsletter -   ⋅   - Certifications -   ⋅   - YouTube -

-  -  -  - -_Appium is a tool for automating native, mobile web, and hybrid applications on iOS, Android, and Windows platforms. It supports iOS native apps written in Objective-C or Swift and Android native apps written in Java or Kotlin. It also supports mobile web apps accessed using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in 'Browser' app on Android). Perform Appium automation tests on [LambdaTest's online cloud](https://www.lambdatest.com/appium-mobile-testing)._ - -_Learn the basics of [Appium testing on the LambdaTest platform](https://www.lambdatest.com/support/docs/getting-started-with-appium-testing/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java)._ - -[](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) - -## Table of Contents - -- [Pre-requisites](#pre-requisites) -- [Run Your First Test](#run-your-first-test) -- [Executing The Test](#executing-the-test) - -## Pre-requisites - -Before you can start performing App automation testing with Appium, you would need to follow these steps: - -- Ensure you have the [Java client library](https://github.com/appium/java-client) installed for Selenium and Appium. -- Download and install **Maven** following the steps from [the official website](https://maven.apache.org/). Maven can also be installed easily on **Linux/MacOS** using [**Homebrew**](https://brew.sh/) package manager. - -### Clone The Sample Project - -Clone the LambdaTest’s :link: [LT-appium-java](https://github.com/LambdaTest/LT-appium-java) repository and navigate to the code directory as shown below: - -```bash -git clone https://github.com/LambdaTest/LT-appium-java -cd LT-appium-java -``` - -### Setting Up Your Authentication - -Make sure you have your LambdaTest credentials with you to run test automation scripts on LambdaTest. To obtain your access credentials, [purchase a plan](https://billing.lambdatest.com/billing/plans?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) or access the [Automation Dashboard](https://appautomation.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java). - -Set LambdaTest `Username` and `Access Key` in environment variables. - -**For Linux/macOS:** - -```bash -export LT_USERNAME="YOUR_LAMBDATEST_USERNAME" \ -export LT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY" -``` - -**For Windows:** - -```bash -set LT_USERNAME="YOUR_LAMBDATEST_USERNAME" \ -set LT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY" -``` - -### Upload Your Application - -Upload your **_iOS_** application (.ipa file) or **_android_** application (.apk file) to the LambdaTest servers using our **REST API**. You need to provide your **Username** and **AccessKey** in the format `Username:AccessKey` in the **cURL** command for authentication. Make sure to add the path of the **appFile** in the cURL request. Here is an example cURL request to upload your app using our REST API: - -**Using App File:** - -**Linux/macOS:** - -```bash -curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" \ ---location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \ ---form 'name="Android_App"' \ ---form 'appFile=@"/Users/macuser/Downloads/proverbial_android.apk"' -``` - -**Windows:** - -```bash -curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "appFile=@"/Users/macuser/Downloads/proverbial_android.apk"" -``` - -**Using App URL:** - -**Linux/macOS:** - -```bash -curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" \ ---location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \ ---form 'name="Android_App"' \ ---form 'url="https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk"' -``` - -**Windows:** - -```bash -curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -d "{"url":"https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk","name":"sample.apk"}" -``` - -**Tip:** - -- If you do not have any **.apk** or **.ipa** file, you can run your sample tests on LambdaTest by using our sample :link: [Android app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk) or sample :link: [iOS app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_ios.ipa). -- Response of above cURL will be a **JSON** object containing the `App URL` of the format - and will be used in the next step. - -## Run Your First Test - -**Test Scenario:** Check out [vanila_android.java](https://github.com/LambdaTest/LT-appium-java/blob/master/src/test/java/vanilla_android.java) file to view the sample test script for android and [vanilla_ios.java](https://github.com/LambdaTest/LT-appium-java/blob/master/src/test/java/vanilla_ios.java) for iOS. - -### Configuring Your Test Capabilities - -You can update your custom capabilities in test scripts. In this sample project, we are passing platform name, platform version, device name and app url (generated earlier) along with other capabilities like build name and test name via capabilities object. The capabilities object in the sample code are defined as: - - - - -```java -DesiredCapabilities capabilities = new DesiredCapabilities(); - capabilities.setCapability("deviceName", "Galaxy S20"); - capabilities.setCapability("platformVersion", "11"); - capabilities.setCapability("platformName", "Android"); - capabilities.setCapability("isRealMobile", true); - capabilities.setCapability("app", "YOUR_APP_URL"); //Enter your app url - capabilities.setCapability("deviceOrientation", "PORTRAIT"); - capabilities.setCapability("build", "Java Vanilla - iOS"); - capabilities.setCapability("name", "Sample Test Java"); - capabilities.setCapability("console", true); - capabilities.setCapability("network", false); - capabilities.setCapability("visual", true); - capabilities.setCapability("devicelog", true); -``` - - - - - -```java -DesiredCapabilities caps = new DesiredCapabilities(); - caps.setCapability("platformVersion", "15"); - caps.setCapability("deviceName", "iPhone 12"); - caps.setCapability("isRealMobile", true); - caps.setCapability("app", "YOUR_APP_URL"); //Enter your app url - caps.setCapability("platformName", "iOS"); - caps.setCapability("build", "Java Vanilla - iOS"); - caps.setCapability("name", "Sample Test Java"); - caps.setCapability("devicelog", true); - caps.setCapability("network", true); -``` - - - - - -**Note:** - -- You must add the generated **APP_URL** to the `"app"` capability in the config file. -- You can generate capabilities for your test requirements with the help of our inbuilt **[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/beta/index.html?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java)**. A more Detailed Capability Guide is available [here](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java). - -## Executing The Test - -Execute the following commands to install the required dependencies: - -```bash -mvn clean install -``` - -The tests can be executed in the terminal using the following command: - -**Android:** - -```bash -mvn test -P android -``` - -**iOS:** - -```bash -mvn test -P ios -``` - -**Info:** Your test results would be displayed on the test console (or command-line interface if you are using terminal/cmd) and on the :link: [LambdaTest App Automation Dashboard](https://appautomation.lambdatest.com/build?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java). - -## Additional Links - -- [Advanced Configuration for Capabilities](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) -- [How to test locally hosted apps](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) -- [How to integrate LambdaTest with CI/CD](https://www.lambdatest.com/support/docs/integrations-with-ci-cd-tools/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) - -## Documentation & Resources :books: - -Visit the following links to learn more about LambdaTest's features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing. - -- [LambdaTest Documentation](https://www.lambdatest.com/support/docs/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) -- [LambdaTest Blog](https://www.lambdatest.com/blog/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) -- [LambdaTest Learning Hub](https://www.lambdatest.com/learning-hub/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) - -## LambdaTest Community :busts_in_silhouette: - -The [LambdaTest Community](https://community.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe 🌎 - -## What's New At LambdaTest ❓ - -To stay updated with the latest features and product add-ons, visit [Changelog](https://changelog.lambdatest.com/) - -## About LambdaTest - -[LambdaTest](https://www.lambdatest.com?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) is a leading test execution and orchestration platform that is fast, reliable, scalable, and secure. It allows users to run both manual and automated testing of web and mobile apps across 3000+ different browsers, operating systems, and real device combinations. Using LambdaTest, businesses can ensure quicker developer feedback and hence achieve faster go to market. Over 500 enterprises and 1 Million + users across 130+ countries rely on LambdaTest for their testing needs. - -### Features - -- Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments. -- Real-time cross browser testing on 3000+ environments. -- Test on Real device cloud -- Blazing fast test automation with HyperExecute -- Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale. -- Smart Visual Regression Testing on cloud -- 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more. -- Automated Screenshot testing across multiple browsers in a single click. -- Local testing of web and mobile apps. -- Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems. -- Geolocation testing of web and mobile apps across 53+ countries. -- LT Browser - for responsive testing across 50+ pre-installed mobile, tablets, desktop, and laptop viewports - -[](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) - -## We are here to help you :headphones: - -- Got a query? we are available 24x7 to help. [Contact Us](mailto:support@lambdatest.com) -- For more info, visit - [LambdaTest](https://www.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) +# Java With Appium ![pw](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge&logo=java&logoColor=white) + +

+ +

+ +

+ Blog +   ⋅   + Docs +   ⋅   + Learning Hub +   ⋅   + Newsletter +   ⋅   + Certifications +   ⋅   + YouTube +

+  +  +  + +_Appium is a tool for automating native, mobile web, and hybrid applications on iOS, Android, and Windows platforms. It supports iOS native apps written in Objective-C or Swift and Android native apps written in Java or Kotlin. It also supports mobile web apps accessed using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in 'Browser' app on Android). Perform Appium automation tests on [LambdaTest's online cloud](https://www.lambdatest.com/appium-mobile-testing)._ + +_Learn the basics of [Appium testing on the LambdaTest platform](https://www.lambdatest.com/support/docs/getting-started-with-appium-testing/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java)._ + +[](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) + +## Table of Contents + +- [Pre-requisites](#pre-requisites) +- [Run Your First Test](#run-your-first-test) +- [Executing The Test](#executing-the-test) + +## Pre-requisites + +Before you can start performing App automation testing with Appium, you would need to follow these steps: + +- Ensure you have the [Java client library](https://github.com/appium/java-client) installed for Selenium and Appium. +- Download and install **Maven** following the steps from [the official website](https://maven.apache.org/). Maven can also be installed easily on **Linux/MacOS** using [**Homebrew**](https://brew.sh/) package manager. + +### Clone The Sample Project + +Clone the LambdaTest’s :link: [LT-appium-java](https://github.com/LambdaTest/LT-appium-java) repository and navigate to the code directory as shown below: + +```bash +git clone https://github.com/LambdaTest/LT-appium-java +cd LT-appium-java +``` + +### Setting Up Your Authentication + +Make sure you have your LambdaTest credentials with you to run test automation scripts on LambdaTest. To obtain your access credentials, [purchase a plan](https://billing.lambdatest.com/billing/plans?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) or access the [Automation Dashboard](https://appautomation.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java). + +Set LambdaTest `Username` and `Access Key` in environment variables. + +**For Linux/macOS:** + +```bash +export LT_USERNAME="YOUR_LAMBDATEST_USERNAME" \ +export LT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY" +``` + +**For Windows:** + +```bash +set LT_USERNAME="YOUR_LAMBDATEST_USERNAME" \ +set LT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY" +``` + +### Upload Your Application + +Upload your **_iOS_** application (.ipa file) or **_android_** application (.apk file) to the LambdaTest servers using our **REST API**. You need to provide your **Username** and **AccessKey** in the format `Username:AccessKey` in the **cURL** command for authentication. Make sure to add the path of the **appFile** in the cURL request. Here is an example cURL request to upload your app using our REST API: + +**Using App File:** + +**Linux/macOS:** + +```bash +curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" \ +--location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \ +--form 'name="Android_App"' \ +--form 'appFile=@"/Users/macuser/Downloads/proverbial_android.apk"' +``` + +**Windows:** + +```bash +curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "appFile=@"/Users/macuser/Downloads/proverbial_android.apk"" +``` + +**Using App URL:** + +**Linux/macOS:** + +```bash +curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" \ +--location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \ +--form 'name="Android_App"' \ +--form 'url="https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk"' +``` + +**Windows:** + +```bash +curl -u "YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -d "{"url":"https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk","name":"sample.apk"}" +``` + +**Tip:** + +- If you do not have any **.apk** or **.ipa** file, you can run your sample tests on LambdaTest by using our sample :link: [Android app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk) or sample :link: [iOS app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_ios.ipa). +- Response of above cURL will be a **JSON** object containing the `App URL` of the format - and will be used in the next step. + +## Run Your First Test + +**Test Scenario:** Check out [vanila_android.java](https://github.com/LambdaTest/LT-appium-java/blob/master/src/test/java/vanilla_android.java) file to view the sample test script for android and [vanilla_ios.java](https://github.com/LambdaTest/LT-appium-java/blob/master/src/test/java/vanilla_ios.java) for iOS. + +### Configuring Your Test Capabilities + +You can update your custom capabilities in test scripts. In this sample project, we are passing platform name, platform version, device name and app url (generated earlier) along with other capabilities like build name and test name via capabilities object. The capabilities object in the sample code are defined as: + + + + +```java +DesiredCapabilities capabilities = new DesiredCapabilities(); + capabilities.setCapability("deviceName", "Galaxy S20"); + capabilities.setCapability("platformVersion", "11"); + capabilities.setCapability("platformName", "Android"); + capabilities.setCapability("isRealMobile", true); + capabilities.setCapability("app", "YOUR_APP_URL"); //Enter your app url + capabilities.setCapability("deviceOrientation", "PORTRAIT"); + capabilities.setCapability("build", "Java Vanilla - iOS"); + capabilities.setCapability("name", "Sample Test Java"); + capabilities.setCapability("console", true); + capabilities.setCapability("network", false); + capabilities.setCapability("visual", true); + capabilities.setCapability("devicelog", true); +``` + + + + + +```java +DesiredCapabilities caps = new DesiredCapabilities(); + caps.setCapability("platformVersion", "15"); + caps.setCapability("deviceName", "iPhone 12"); + caps.setCapability("isRealMobile", true); + caps.setCapability("app", "YOUR_APP_URL"); //Enter your app url + caps.setCapability("platformName", "iOS"); + caps.setCapability("build", "Java Vanilla - iOS"); + caps.setCapability("name", "Sample Test Java"); + caps.setCapability("devicelog", true); + caps.setCapability("network", true); +``` + + + + + +**Note:** + +- You must add the generated **APP_URL** to the `"app"` capability in the config file. +- You can generate capabilities for your test requirements with the help of our inbuilt **[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/beta/index.html?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java)**. A more Detailed Capability Guide is available [here](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java). + +## Executing The Test + +Execute the following commands to install the required dependencies: + +```bash +mvn clean install +``` + +The tests can be executed in the terminal using the following command: + +**Android:** + +```bash +mvn test -P android +``` + +**iOS:** + +```bash +mvn test -P ios +``` + +**Info:** Your test results would be displayed on the test console (or command-line interface if you are using terminal/cmd) and on the :link: [LambdaTest App Automation Dashboard](https://appautomation.lambdatest.com/build?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java). + +## Additional Links + +- [Advanced Configuration for Capabilities](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) +- [How to test locally hosted apps](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) +- [How to integrate LambdaTest with CI/CD](https://www.lambdatest.com/support/docs/integrations-with-ci-cd-tools/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) + +## Documentation & Resources :books: + +Visit the following links to learn more about LambdaTest's features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing. + +- [LambdaTest Documentation](https://www.lambdatest.com/support/docs/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) +- [LambdaTest Blog](https://www.lambdatest.com/blog/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) +- [LambdaTest Learning Hub](https://www.lambdatest.com/learning-hub/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) + +## LambdaTest Community :busts_in_silhouette: + +The [LambdaTest Community](https://community.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe 🌎 + +## What's New At LambdaTest ❓ + +To stay updated with the latest features and product add-ons, visit [Changelog](https://changelog.lambdatest.com/) + +## About LambdaTest + +[LambdaTest](https://www.lambdatest.com?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) is a leading test execution and orchestration platform that is fast, reliable, scalable, and secure. It allows users to run both manual and automated testing of web and mobile apps across 3000+ different browsers, operating systems, and real device combinations. Using LambdaTest, businesses can ensure quicker developer feedback and hence achieve faster go to market. Over 500 enterprises and 1 Million + users across 130+ countries rely on LambdaTest for their testing needs. + +### Features + +- Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments. +- Real-time cross browser testing on 3000+ environments. +- Test on Real device cloud +- Blazing fast test automation with HyperExecute +- Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale. +- Smart Visual Regression Testing on cloud +- 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more. +- Automated Screenshot testing across multiple browsers in a single click. +- Local testing of web and mobile apps. +- Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems. +- Geolocation testing of web and mobile apps across 53+ countries. +- LT Browser - for responsive testing across 50+ pre-installed mobile, tablets, desktop, and laptop viewports + +[](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) + +## We are here to help you :headphones: + +- Got a query? we are available 24x7 to help. [Contact Us](mailto:support@lambdatest.com) +- For more info, visit - [LambdaTest](https://www.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-java) diff --git a/pom.xml b/pom.xml index 968716f..d415dde 100644 --- a/pom.xml +++ b/pom.xml @@ -1,127 +1,176 @@ - - - 4.0.0 - - - App - AppTesting - 1.0-SNAPSHOT - - - UTF-8 - - - - 4.11.0 - - - - - org.seleniumhq.selenium - selenium-bom - ${selenium.version} - pom - import - - - - - - - - - - - - io.appium - java-client - 8.6.0 - - - - org.seleniumhq.selenium - selenium-java - - - - - org.testng - testng - 7.9.0 - test - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - - - - - android - - - - org.codehaus.mojo - exec-maven-plugin - 1.1.1 - - - test - - java - - - vanilla_android - test - - - - - - - - - - ios - - - - org.codehaus.mojo - exec-maven-plugin - 1.1.1 - - - test - - java - - - vanilla_ios - test - - - - - - - - - - + + + + 4.0.0 + + org.example + AppTest + 1.0-SNAPSHOT + + + UTF-8 + 22 + ${java.version} + ${java.version} + + + + + org.seleniumhq.selenium + selenium-java + 4.27.0 + + + + io.appium + java-client + 9.3.0 + + + + org.testng + testng + 7.10.2 + compile + + + + com.konghq + unirest-java + 3.14.5 + + + + org.json + json + 20240303 + + + + org.webjars.npm + xmlhttprequest-ssl + 2.1.2 + + + + org.slf4j + slf4j-simple + 2.0.13 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + ${java.version} + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.5.2 + + + true + + + + + + + + + android-single + + + + org.apache.maven.plugins + maven-surefire-plugin + + + src/test/java/android-single.xml + + + + + + + + + android-app-profiling + + + + org.apache.maven.plugins + maven-surefire-plugin + + + src/test/java/android-app-profiling.xml + + + + + + + + + android-parallel + + + + org.apache.maven.plugins + maven-surefire-plugin + + + src/test/java/android-parallel.xml + + + + + + + + + ios-single + + + + org.apache.maven.plugins + maven-surefire-plugin + + + src/test/java/ios-single.xml + + + + + + + + + ios-parallel + + + + org.apache.maven.plugins + maven-surefire-plugin + + + src/test/java/ios-parallel.xml + + + + + + + + + \ No newline at end of file diff --git a/src/test/java/vanilla_android.java b/src/test/java/vanilla_android.java index 1ad8b52..c3ed6a9 100644 --- a/src/test/java/vanilla_android.java +++ b/src/test/java/vanilla_android.java @@ -1,96 +1,97 @@ -import io.appium.java_client.AppiumDriver; -import io.appium.java_client.MobileBy; -//import io.appium.java_client.WebElement; -import org.openqa.selenium.WebElement; import io.appium.java_client.AppiumBy; import io.appium.java_client.android.AndroidDriver; import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.DesiredCapabilities; +import org.testng.annotations.AfterTest; +import org.testng.annotations.BeforeTest; +import org.testng.annotations.Test; + import java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; public class vanilla_android { - public static String userName = System.getenv("LT_USERNAME") == null ? "YOUR_USERNAME" : System.getenv("LT_USERNAME"); - public static String accessKey = System.getenv("LT_ACCESS_KEY") == null ? "YOUR_ACCESS_KEY" : System.getenv("LT_ACCESS_KEY"); - - static AppiumDriver driver; - public static void main(String args[]) throws MalformedURLException, InterruptedException { + public static String userName = System.getenv("LT_USERNAME") == null ? "utkarshblambdatest" : System.getenv("LT_USERNAME"); + public static String accessKey = System.getenv("LT_ACCESS_KEY") == null ? "YOUR_ACTUAL_KEY" : System.getenv("LT_ACCESS_KEY"); + + public AndroidDriver driver; + + @BeforeTest + public void setup() throws MalformedURLException { + DesiredCapabilities capabilities = new DesiredCapabilities(); + HashMap ltOptions = new HashMap(); + + ltOptions.put("deviceName", "Galaxy.*"); + ltOptions.put("platformVersion", "14"); + ltOptions.put("platformName", "Android"); + ltOptions.put("isRealMobile", true); + ltOptions.put("app", "lt://APP1016055391769006462699400"); + ltOptions.put("deviceOrientation", "PORTRAIT"); + ltOptions.put("build", "Java Vanilla - Android"); + ltOptions.put("name", "Sample Test Java"); + ltOptions.put("console", true); + ltOptions.put("autoGrantPermissions", true); + ltOptions.put("visual", true); + ltOptions.put("devicelog", true); + + capabilities.setCapability("lt:options", ltOptions); + + String hub = "https://" + userName + ":" + accessKey + "@mobile-hub.lambdatest.com/wd/hub"; + driver = new AndroidDriver(new URL(hub), capabilities); + } + @Test + public void basicTest() throws InterruptedException { try { - DesiredCapabilities capabilities = new DesiredCapabilities(); - HashMap ltOptions = new HashMap(); - ltOptions.put("deviceName", "Galaxy.*"); // You can specify a particular model, or use a wildcard. - ltOptions.put("platformVersion", "14"); // Make sure this matches the device's OS version. - ltOptions.put("platformName", "Android"); - ltOptions.put("isRealMobile", true); // Ensures that the test runs on a real device. - ltOptions.put("app", "lt://APP10160622431766424164986229"); // Your app URL from LambdaTest. - ltOptions.put("deviceOrientation", "PORTRAIT"); - ltOptions.put("build", "Java Vanilla - Android"); - ltOptions.put("name", "Sample Test Java"); - ltOptions.put("console", true); - ltOptions.put("autoGrantPermissions", true); // Auto grants permissions on the app. - ltOptions.put("network", false); - ltOptions.put("visual", true); - ltOptions.put("devicelog", true); - capabilities.setCapability("lt:options", ltOptions); - - // Initialize Appium driver with the LambdaTest server URL and capabilities - driver = new AndroidDriver( - new URL("https://" + userName + ":" + accessKey + "@mobile-hub.lambdatest.com/wd/hub"), - capabilities); - - // Interact with elements using their IDs - WebElement color = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/color")); + // Updated to AppiumBy.id + WebElement color = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/color")); color.click(); - WebElement text = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/Text")); + WebElement text = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/Text")); text.click(); - // Interact with Toast message element - WebElement toast = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/toast")); + WebElement toast = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/toast")); toast.click(); - // Interact with Notification element - WebElement notification = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/notification")); + WebElement notification = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/notification")); notification.click(); - // Open the Geolocation page - WebElement geo = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/geoLocation")); + WebElement geo = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/geoLocation")); geo.click(); Thread.sleep(5000); - // Go back to the home page driver.navigate().back(); Thread.sleep(2000); - // Navigate to the Speed Test page - WebElement speedtest = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/speedTest")); + WebElement speedtest = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/speedTest")); speedtest.click(); Thread.sleep(5000); driver.navigate().back(); - // Open the Browser and perform actions - WebElement browser = driver.findElement(MobileBy.AccessibilityId("Browser")); + // Updated to AppiumBy.accessibilityId (note the lowercase 'a') + WebElement browser = driver.findElement(AppiumBy.accessibilityId("Browser")); browser.click(); - WebElement url = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/url")); + WebElement url = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/url")); url.sendKeys("https://www.lambdatest.com"); - WebElement find = driver.findElement(MobileBy.id("com.lambdatest.proverbial:id/find")); + WebElement find = driver.findElement(AppiumBy.id("com.lambdatest.proverbial:id/find")); find.click(); - } catch (AssertionError a) { - // Mark the status as failed if there's an error + ((JavascriptExecutor) driver).executeScript("lambda-status=passed"); + } catch (Exception e) { ((JavascriptExecutor) driver).executeScript("lambda-status=failed"); - a.printStackTrace(); - } finally { - // Ensure the driver quits to avoid the session hanging - if (driver != null) { - driver.quit(); - } + e.printStackTrace(); + } + } + + @AfterTest + public void tearDown() { + if (driver != null) { + driver.quit(); } } -} +} \ No newline at end of file diff --git a/target/AppTest-1.0-SNAPSHOT.jar b/target/AppTest-1.0-SNAPSHOT.jar new file mode 100644 index 0000000000000000000000000000000000000000..d58810885fde3dd625a2b7334d1e2362381df291 GIT binary patch literal 1952 zcmWIWW@h1HVBlb2Sl?U_!+-=hfoxyb5Jz24KR5jVpfVAlG7hjZsXs}z!9eLiAO?ye zl=(XPdAhjDzeaau@S7oi=c$qy(yj6j(yG%7=LV{rUVcW-1^2~7ZZCgOIUFe$7C);{_9^|o$7x4>Q=<|{pa%Y>SOL(7TmK55Z5>qCFxx*S`}#aK|=Ty z^U36g58qeT-rcf??@q_c8?zQ#G9BG{cp-Ck6PJPas^f<{0(6SH-%Z~i`lp-ucH-SK z5h2E~=(kTc*ywJUHa+IWV-Dl^&wD1W4f^-y+RI?==c5gnOkkFhsd%LDj)hzS8b6V_a{qKb*nsNOr5c8SuqtqoSXr+;StLH!hPoLc) zF5{Ck1+#@-k~W;9oc?TXSU~L&Ak~3$|D3 zzf7?)meS(9FiGXMzM95esw=jEXN9%qFFo|ociWEn?L81%en49 z;x;KwGrk(O;@wOJ>t{wW(hmxb?g+maa9?FDkLx7w>+^bdCnc{Hm_KKVpioDU&-a=; zvhv+hH9=ZJdf&CH(p6$o{|jHvw`VQ)KJdSs>Ds)_=b4_mr+k-3EzrK5T-j>_%$y)> zNPH$OD9SHLEh@=OE%w&YI_cx>qxaEgW2ue?ho`RILofYP`nn9CK6hXG8l){$%v}_; z^HflGm+|M%IlNzaN}B)5FgMx$aozze))<*Yn6Z~tph6e|1Q^~rf>=mJGDsWlLK&)$ zVM(JpvNoh58lT0W5)}eK7Ow#^;TFTnSKO`!m9P*1(tH!hMAM8~-r_b0RN_Ja$RHs` zyapl4UqrxQD}iA~ZfguC&Om5+3<)kofTJfGn7K{KZBoyGy$_6rm9R!&e J7@Ao@JODi6xEBBb literal 0 HcmV?d00001 diff --git a/target/AppTesting-1.0-SNAPSHOT.jar b/target/AppTesting-1.0-SNAPSHOT.jar deleted file mode 100644 index 6824ff70af7c1045b9ecccd84af1660b88bf3dac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2062 zcmWIWW@h1HVBlb2@L1;<`|Nw>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pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,3 +1,3 @@ -artifactId=AppTesting -groupId=App +artifactId=AppTest +groupId=org.example version=1.0-SNAPSHOT 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 index 0038495..5b2224a 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -1,2 +1,2 @@ -D:\LT-appium-java-ADO\src\test\java\vanilla_ios.java -D:\LT-appium-java-ADO\src\test\java\vanilla_android.java +/Users/utkarshb/Downloads/Repos/LT-appium-java-ADO/src/test/java/vanilla_android.java +/Users/utkarshb/Downloads/Repos/LT-appium-java-ADO/src/test/java/vanilla_ios.java diff --git a/target/test-classes/vanilla_android.class b/target/test-classes/vanilla_android.class index 0f554d0bd1a815da122af9e63665c835dcb17935..3d0c5b3c6ebb14dfc485e06efd305c96ae589629 100644 GIT binary patch delta 2303 zcmZ`)X>c1w7XDfqX-4C*O_U4m#w3n8eU$AS#&!;H9ObesJ3gb35XREjop&5RQh zK*h0Hj?E^}B;4U9+z<>tViI;?LpH!}Se6@h*(?itRPl3*Dylf%NOD9KE^byZb0i)t3s z)YUDjs^W*)omK83-LTZCgry9gh&H5$wP?Ig!g2k$Cd?aw(Y2ng}a)owP4erWvpu38eARR&|KR& zkn|6m-7Q`1!Op;yYb|5ZYHMMbpK=!S6OKk%#%ion;6f9x73R2`Z869<3bm!JSTCYY zK|4Aa3WwB~9*wG7)L0}L*CPz>NKzltk_;6Ae$r7UERoQ~tKIYXSAv+g0U;3^6T)`Gx!FRcuJv|7Eh$ztbr>+X2kD-{qEfk3z+745KPUbEU zwlQ2}gM8RsAPg{Em|i^Yo|QLx4l|r|ceN$fLUHZ1=YX z8=Czxp1_kLo>K5Mo?(2CXVtvt7`#)ZmhsvyI1gHJNWlvj;Rl@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