within a code module I want to find out if I am currently in the first / last iteration of a test case.
As long as there is no data range defined within the attached data connector this is no problem. In this case I can get the current row index with
Code: Select all
But if there is a data range defined within the attached data connector then I must know if the data range is active and if so then I must check if the current row index is the first / last index within the data range. But I could not find any possiblity how to decide if the data range is currently active or not. If the data range is active then the XML attribute datarangeactive="True" will be written to the .rxtst file but there no corresponding property which provides this value. The DataRange class only has the properties MaxRange and MinRange but I miss a property like IsActive.
Of course I could read the .rxtst file and parse it for the attribute datarangeactive="True". But is there no easier way to find out if a data range is active?
Any help would be appreciated.