GithubHelp home page GithubHelp logo

Comments (2)

sbabcoc avatar sbabcoc commented on July 3, 2024

TargetPlatform.txt

NOTE: JUnit platform support does not exhibit feature parity (not sure this is actually true)

Core implementation

  • if target platform is defined, append platform name to test result output path

PlatformTargetable<P extends Enum<?>>

  • defines target platform interface for test classes

TargetPlatformHandler

  • declares shouldRun()
  • declares getTargetedPlatform() methods
    • uses getDefaultPlatform() and platformFromString()

(TestNG) WebDriverTestNGTestSupport.beforeInvocation

  • try to convert method description to JSON object
  • if conversion succeeds, extract the "platform" element
  • if a platform was specified:
    • invoke interface activatePlatform() method
    • store platform value in test result attribute

(TestNG) TestFlowController

  • method interceptor determines which methods should run on context platform
  • for each method that should run:
    • get targeted platform
    • if platform is defined, store it as JSON in method description
    • add method to list of tests to run
  • context platform defined in SuiteXML takes precedence over core settings

(JUnit) TargetPlatformRule implements TestRule

  • get test run platform setting (contextPlatform)
  • get TargetPlatform annotation from Description
  • wrap base Statement in PlatformStatement object, injecting TargetPlatform annotation

(JUnit) PlatformStatement extends Statement

  • in <init>(), store targeted/default platform
  • in evaluate(), propagate this value to the TargetPlatformRule

(JUnit) WebDriverJUnitTestSupport.setup (@Before method)

  • if test class is targetable, get target from TargetPlatformRule
  • if platform was specified, invoke interface activatePlatform() method
  • otherwise, throw AssumptionViolatedException to skip the test

from selenium-foundation.

sbabcoc avatar sbabcoc commented on July 3, 2024

This issue is resolved by the release of version 17.6.0.

from selenium-foundation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.