Forum Discussion

Lagencie's avatar
Lagencie
Frequent Contributor
7 years ago

Showing Keyword Test - TestSteps in Log

Is it possible to show keyword test, teststeps in the log of the keyword test?

 

I created my Project with many keyword tests for checks, like Templates, but when the keyword test runs through it doesn't create a line in the log for "Keyword Test: Check UserMenue" passed

 

 

Screenshot in the attachment from my test + testrun, which doesnt show the Keyword Test Teststeps

  • Not automatically, no.  You will need to add, at the beginning of each keyword test, a Log operation to log a message.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Not automatically, no.  You will need to add, at the beginning of each keyword test, a Log operation to log a message.

  • Lagencie's avatar
    Lagencie
    Frequent Contributor

    So even within Keyword Tests that I am not using as Tests but as Templates I have to use Log - Error, rather than Stop Execution, to see the Error in the Logs?

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      Yes....  think of keyword tests as just another way of writing functional script code... what you have as "templates" I'd call if they were script code library functions...  So... you're calling code from within code...