Forum Discussion

Etks's avatar
Etks
Occasional Contributor
6 years ago

Where is the API?

I'm scripting a lot in my LoadUI and SoapUI tests and often have to rely on the mysterious testRunner, context and loadTestRunner variables. I don't want to keep plugging along via trial and error.

 

Where is the API? Where can I find a complete list of methods for the ReadyAPI-specific variables and a description of what they do?

  • Hi,

     

    SmartBear provides JavaDocs here

    Unfortuallly the descriptions are lacking in many places.

     

    There appears to be multiple objects that point to these variables. Which one is used is contextual to which type of request you use.

     

    For example,

    TestRunner is an interface and there are actually several objects it could be depending on the context you are using it in. e.g. SecurityTestRunner, WsdlTestCaseRunner

     

    There is also some useful samples of common usages of scripting here

     

     

    Hopefully that helps

     

  • Hi,

     

    SmartBear provides JavaDocs here

    Unfortuallly the descriptions are lacking in many places.

     

    There appears to be multiple objects that point to these variables. Which one is used is contextual to which type of request you use.

     

    For example,

    TestRunner is an interface and there are actually several objects it could be depending on the context you are using it in. e.g. SecurityTestRunner, WsdlTestCaseRunner

     

    There is also some useful samples of common usages of scripting here

     

     

    Hopefully that helps

     

    • Etks's avatar
      Etks
      Occasional Contributor

      Thanks, this is what I was looking for.