Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Appium: Parallel execution halts if test is complete on one of the device

    Appium: Parallel execution halts if test is complete on one of the device

    June 24, 2024

    I am trying to run 2 different tests on 2 different emulators parallelly. But my execution halts on 1 device as soon as the test on other device is complete.
    I am using the below driver setup code

    capabilities = new DesiredCapabilities();
    capabilities.setCapability(“platformName”, “Android”);
    capabilities.setCapability(“VERSION”, platformVersion);
    capabilities.setCapability(“udid”, deviceName);
    capabilities.setCapability(“app”, “app.apk”);
    capabilities.setCapability(“appPackage”, “xxx”);
    capabilities.setCapability(“appActivitiy”, “xxx.HomeActivity”);
    capabilities.setCapability(“systemPort”, systemPort);
    driver = new AndroidDriver(new URL(“http://0.0.0.0:4723/wd/hub”), capabilities);

    And below is my testNG.xml file

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <suite name=”Parallel Tests” parallel=”tests” thread-count=”2″>
    <test name=”Android native app test on Android 12″>
    <parameter name=”platformVersion” value=”12″/>
    <parameter name=”deviceName” value=”emulator-5554″/>
    <parameter name=”systemPort” value=”6666″/>
    <classes>
    <class name=”LoginTest” />
    </classes>
    </test>
    <test name=”Android native app test on Android 10″>
    <parameter name=”platformVersion” value=”10″/>
    <parameter name=”deviceName” value=”emulator-5556″/>
    <parameter name=”systemPort” value=”8666″/>
    <classes>
    <class name=”SignUpTest” />
    </classes>
    </test>
    </suite>

    I get the following exception

    org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?

    And sometimes this exception as well

    org.openqa.selenium.NoSuchSessionException: A session is either terminated or not started

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous Articleparametrization of body jmeter
    Next Article Getting Error at the time of saving the test cases in Katalon Studio

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-40906 – MongoDB BSON Serialization BSON::XS Multiple Vulnerabilities

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    CVE-2025-32022 – Finit Urandom Heap Buffer Overwrite Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Making climate models relevant for local decision-makers

    Artificial Intelligence

    Should the page object model return a new page object model when navigating to another page?

    Development

    No guarantees of payday for ransomware gang that claims to have hacked children’s hospital

    Development

    Highlights

    Development

    Microsoft unveils major Windows 11 Start menu upgrade — integrates Phone Link messages and notifications

    June 21, 2024

    Phone Link and Windows 11 are about to get even closer. Microsoft just started testing…

    CVE-2025-2987 – IBM Maximo Asset Management SSRF

    April 21, 2025

    It looks like Fallout 76 is FINALLY getting one of its most requested features

    July 7, 2024

    Mastering Email Communication with Salesforce: A Comprehensive Guide

    August 21, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.