Forum

Forum
Is there any method...
 
Notifications
Clear all

[Solved] Is there any method to get all the Step Name that are present in the Base Line

Harish Merugu
New Member
Joined: 4 years ago
Posts: 2
Topic starter  

Awaiting for the response


   
Topic Tags
Amrita Kaur
Member Admin
Joined: 4 years ago
Posts: 108
 

The only way to get all the step names is to go to the Baseline Tab, select your test and it will display all the steps along with the name.

If you are looking for an API to return all the step names, it is not available.

However we are interested to understand your exact need on why do you need to know all the step names in a Baseline. If it is useful for the wider audience we may create an API to retrieve this list.

Please share your complete use case.


   
Harish Merugu
New Member
Joined: 4 years ago
Posts: 2
Topic starter  
 

We are trying to collect all the StepNames in a Loop and will store in a List and iterate over it and we have to compare with the required step and it matches then compare else throw an Failure message.

At present if we don't give the valid Name it's throwing the error message. Ideally we don't need to throw the error message


   
Amrita Kaur
Member Admin
Joined: 4 years ago
Posts: 108
 
Posted by: @harish

We are trying to collect all the StepNames in a Loop and will store in a List and iterate over it and we have to compare with the required step and it matches then compare else throw an Failure message.

At present if we don't give the valid Name it's throwing the error message. Ideally we don't need to throw the error message

That's an interesting use case, we will have an internal discussion in the team on the possibility of adding a feature for this. In general Imagium is made to run the same script for creating a baseline and later running the test case.

A new StepName will add a new baseline instance.

Just for your information : Special characters are not allowed in the TestName and StepName