Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to access factory method params info #3115

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Apr 28, 2024

  1. Allow users to access factory method params info

    Closes testng-team#3111
    
    TestNG now exposes the IParameterInfo interface 
    Via which you can extract the following details
    Pertaining to a factory powered test.
    
    * the index - which would match with what was 
    Specified in the “indices” attribute of the “Factory” 
    Annotation. If nothing was specified, then this
    Would be equal to a running count on the total instances.
    
    * current index - which represents a running count
    On the total instances.
    
    * The parameters of the factory method
    
    * The instance that was produced.
    krmahadevan committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    9b2e339 View commit details
    Browse the repository at this point in the history
  2. Fixing review comments

    krmahadevan committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    ac7ab96 View commit details
    Browse the repository at this point in the history
  3. Fixing review comments

    krmahadevan committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    f11c4fc View commit details
    Browse the repository at this point in the history