Is there a way to get the name of the current baseline within a member action?
Also, can you get the total number of steps in the baseline?
Is there a way to get the name of the current baseline within a member action?
Also, can you get the total number of steps in the baseline?
I have managed to get the name of the current baseline by setting it as a parameter in the baseline and referring to this parameter in member tasks:
var sBaselineName = EvaluateRelevance("(name of it) of current fixlet");
FixletUtils.setElementText(“baselineName”, sBaselineName);
I am still struggling to get a count of member tasks of this baseline though?
It wasn’t clear in the first post, but this is to run in a dashboard/web report/ api, where you are using session relevance, right?
You can examine properties like number of components of component groups of bes fixlet
if that’s the case.
Hi Jason,
Actually I’m adding parameters to a baseline using parameterized fixlets.
Your session relevance has given me the pointer I needed tho, this now works.
I added a parameter to the baseline by following these instructions
and then added this to the standard javascript
var components = EvaluateRelevance("**number of components of component groups of current fixlet**");
FixletUtils.setElementText("TotalSteps",components);
FixletUtils.disableField ("TotalSteps", true);
You can get the name of the baseline too:
var BaselineName = EvaluateRelevance("(name of it) of current fixlet");
Many thanks for your help!!