Silk4JExecuteTestcase Function

Action

Silk4JExecuteTestcase starts an execution using UFT Developer (Silk4J) and collects the results of the execution.

Include file

SilkTest.bdh

Syntax

Silk4JExecuteTestcase( in sClass    : string,
                       in sTestCase : string,
                       in sTimer    : string ): boolean;
Parameter Description
sClass The JUnit test class name
sTestCase The name of the testcase you want to execute
sTimer The name of the timer for the Silk4JExecuteTestcase function

Return value

  • true if successful

  • false otherwise

Example

dcltrans
  transaction TInit
  begin
    AttributeGetString("GLTusername",username);
    AttributeGetString("GLTpassword",password);
    Silk4JInitSession(username,password);
  end TInit;

  transaction TTest
  begin
    Silk4JExecuteTestcase("com.borland.silk4j.TestClass","testMethod","method testcase");
  endTTest;