Forum Discussion

sizhou's avatar
sizhou
Occasional Contributor
7 years ago

ready!api events handler TestSuiteRunListenerBeforeTestCase

2 Replies

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Hi sizhou,

     

    What is your question?

    • sizhou's avatar
      sizhou
      Occasional Contributor

      Sorry, I tried to finish it before a meeting,  somehow sent it out by mistake before I can finish it.

      The description of these 2 event handler states that the groovy scripts will be invoked with   testCase with a directly accessible object, instead, I can only directly access testSuite.  I am wondering  whether  it is a just typo, testSuite  rather than testCase?  in description  or the event implementation is wrong.  

      I do need to know which testCase I am running for logging purpose before and after each testing case run.

       

      BTW, I found a workaround by using context.currentTestCase. 

       

      thanks,

      Sizhou.