appium I how to read configurations from property file | parameterization in TestNG part-8

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 10

  • @ajitgore2956
    @ajitgore2956 7 месяцев назад +1

    Nice concept

  • @LittleShooter
    @LittleShooter 7 месяцев назад +1

    Very good video sir..

  • @priyankamane6706
    @priyankamane6706 4 месяца назад +1

    My url is not working which is I have set in properties file. It showing error. Can you please give me solution

  • @Intraday_Market_Trader
    @Intraday_Market_Trader 6 месяцев назад +1

    If I don't pvoide the app location, my scrip gets fail but I can see that you didn't provide the apk location but still it's running

    • @BhauAutomationLab
      @BhauAutomationLab  5 месяцев назад

      Bcoz i have set app package name and activity name in desired capabilities.

    • @Intraday_Market_Trader
      @Intraday_Market_Trader 5 месяцев назад +1

      @@BhauAutomationLab I have also set appPackage and apActivity in code still If I comment my apk path, my script fail

    • @BhauAutomationLab
      @BhauAutomationLab  5 месяцев назад

      @OptionTrader91 Please share your caps details

    • @Intraday_Market_Trader
      @Intraday_Market_Trader 5 месяцев назад

      @@BhauAutomationLab//Setting Desire Capabilities for device
      DesiredCapabilities caps = new DesiredCapabilities();
      caps.setCapability("appium:automationName",AndroidAppAutomationName);
      caps.setCapability("udid", "emulator-5554");
      caps.setCapability("appium:deviceName", "sdk_gphone_x86_64");
      caps.setCapability("platformName", "Android");
      caps.setCapability("appium:platformVersion", "13");
      caps.setCapability("appium:app", "C:\\Users\\Rahul Sinha\\eclipse-workspace\\ClearQuoteInspection\\src\\test\
      esources\\ClearQuote Inspections.apk");
      caps.setCapability("appWaitForLaunch", false);
      caps.setCapability("appPackage", AndroidAppPackageName);
      caps.setCapability("appActivtiy", AndroidAppActivtiyName);
      URI url = new URI(AppiumURL);
      driver = new AndroidDriver(url.toURL(),caps);