Forum Discussion

Deef's avatar
Deef
Occasional Contributor
5 months ago

Failed step is not specified

Hi,

When I have a keyword test (A) in which another keyword test (B) is executed multiple times and keyword test A fails because keyword test B failed, then it is not possible to see which instance of keyword test B failed.

Example:

Keyword test A (check values in employee file)
 Step 1: Open employee file
 Step 2: Press button 1
 Step 3: run keyword test B "Check all values"
 Step 4: Press button 2
 Step 5: run keyword test B "Check all values"
 Step 6: Press button 3
 Step 7: run keyword test B "Check all values"
 Step 8: Close employee file

If the run of Keyword test A fails, because in step 5 keyword test B failed the keyword test log of keyword test B shows that the failed step is in keyword test B, but not in which instance (step 3, 5 or 7).

It would be better if steps 1, 2, 3 and 4 where indicated as succeeded and step 5 as failed.

Am I overlooking something?

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Other option is to have a global variable as a counter. You then increment the counter for each Keyword Test B. Hopefully that should give you an indication too.

  • Deef's avatar
    Deef
    Occasional Contributor

    Thank you rraghvani, it does give a bit more context.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Using Execution Plan, will hopefully give you a better idea, as to where the error is occurring or what step has failed.