You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TestNG should provide an Api which allow to find all dependent of a specific testΒ #893
About the naming, I think something closer the annotation attribute name will be better.
What attribute are you referring to here? In TestNG, we only have a mapping from a child (Dependent method) to a parent (Independent method upon which the dependent method depends on)
But here we are asking for all children, given a parent.
Here we are asking for an API, wherein if we give input as independent() it should return dependent() and anotherDependent(). Is this the right expectations?
If yes, then I think the api should be called as getDownstreamDependencies(). WDYT ?
For upstream dependencies ( which is what dependsOnMethods represents) we have this String[] getMethodsDependedUpon(); in the ITestNGMethod interface.
Activity
krmahadevan commentedon Nov 25, 2022
@juherr - What is the expectations of this issue. I would specifically like to know the following:
TestNGinstance ?It would be good if you could please help add some additional context into this issue.
juherr commentedon Nov 25, 2022
It is for the integrations. The need is to add the dependent
TestMethods onTestMethodapikrmahadevan commentedon Nov 25, 2022
You mean something like
public List<ITestNGMethod> getDownstreamDependencies()intoITestNGMethodinterface right ?juherr commentedon Nov 25, 2022
Yes, exactly. It exists in the model but not available by the api.
About the naming, I think something closer the annotation attribute name will be better.
krmahadevan commentedon Nov 26, 2022
@juherr
What attribute are you referring to here? In TestNG, we only have a mapping from a child (Dependent method) to a parent (Independent method upon which the dependent method depends on)
But here we are asking for all children, given a parent.
Here we are asking for an API, wherein if we give input as
independent()it should returndependent()andanotherDependent(). Is this the right expectations?If yes, then I think the api should be called as
getDownstreamDependencies(). WDYT ?For upstream dependencies ( which is what
dependsOnMethodsrepresents) we have thisString[] getMethodsDependedUpon();in the ITestNGMethod interface.juherr commentedon Nov 26, 2022
I will check again. I thought the need was to have getMethodsDependedUpon() returning object instead of string
Support getting dependencies info for a test
krmahadevan commentedon Nov 28, 2022
@juherr - I have raised a PR which now provides both upstream and downstream dependencies for a test method. Please check.
Support getting dependencies info for a test
Support getting dependencies info for a test
Support getting dependencies info for a test
Support getting dependencies info for a test
Support getting dependencies info for a test