Service Virtualization

Expand all | Collapse all

Unable to run test case using TestRunner command

Jump to Best Answer
  • 1.  Unable to run test case using TestRunner command

     
    Posted 06-11-2018 11:00 AM

    I tried running a DevTest test case using following TestRunner command, it shows following error:

     

    Command

    TestRunner -t ../TestProject/Tests/SampleTestCase.tst -r ../TestProject/StagingDocs/Run1User1Cycle.stg -a -config ../TestProject/Configs/project.config -cs local -m tcp://AHMMO05-5510:2010/Registry -u admin -p admin

     

     

    Below are the command execution details

     

     

     


    C:\Program Files\CA\DevTest\bin>TestRunner -t ../TestProject/Tests/SampleTestCase.tst -r ../TestProject/StagingDocs/Run1User1Cycle.stg -a -config ..
    /TestProject/Configs/project.config -cs local -m tcp://AHMMO05-5510:2010/Registry -u admin -p admin
    Locale: en_US
    Setting System.out and System.err to: Cp1252
    LISA_HOME set to C:\PROGRA~1\CA\DevTest\
    DevTest temporary directory is C:\Users\ahmmo05\lisatmp_10.3.0
    Configuring logging from 'C:\PROGRA~1\CA\DevTest\logging.properties'
    DevTest Solutions, Copyright (c) 2002-2018 CA, All rights reserved.
    DevTest Test Runner - Stage and Execute Test Cases
    DevTest Solutions Version :: 10.3.0 (10.3.0.297)
    Installed patches: none
    Generated rules from C:\PROGRA~1\CA\DevTest\rules.xml
    [DevTest AGENT:C][WARN][8340][44][Agent Info Notifier][Jun 11, 2018 8:24:40 PM] Connection to Agent broker at tcp://AHMMO05-5510:2009?daemon=true was dropped... (com.itko.activemq.ConnectionClosedException: The connectio
    n is already closed)
    Security is enabled in DevTest
    User credentials are valid
    Failed to stage or start test/suite
    Failed to stage test!Failed to stage test!


    ============================================================================
    | Exception:
    ============================================================================
    | Message:     Failed to stage test!
    ----------------------------------------------------------------------------
    | Trapped Exception: Cannot find project root for C:\Program Files\CA\DevTest\TestProject\Tests\SampleTestCase.tst
    | Trapped Message:

    ============================================================================
    | Exception:
    ============================================================================
    | Message:     Cannot find project root for C:\Program Files\CA\DevTest\TestProject\Tests\SampleTestCase.tst
    ----------------------------------------------------------------------------
    | Trapped Exception: null
    | Trapped Message:   java.lang.IllegalArgumentException
    -------------------------------------------------------
     See logs for more.

    Exiting with exit code 254 (INTERNAL ERROR)

    C:\Program Files\CA\DevTest\bin>

     

     

     

    Could someone let me know if I am doing anything wrong?



  • 2.  Re: Unable to run test case using TestRunner command

    Posted 06-11-2018 12:07 PM

    Is your TestProject folder under C:\Program Files\CA\DevTest?



  • 3.  Re: Unable to run test case using TestRunner command

     
    Posted 06-12-2018 01:39 AM

    Yes it is at C:\Program Files\CA\DevTest\Projects\TestProject



  • 4.  Re: Unable to run test case using TestRunner command
    Best Answer

    Posted 06-12-2018 10:53 PM

    Hi Irfan,

     

        From logs, it shows test path is referring to path "C:\Program Files\CA\DevTest\TestProject\Tests\SampleTestCase.tst" and your actual test case is under "C:\Program Files\CA\DevTest\Projects\TestProject" ( which is under projects\TestProject).

       So, please correct the test case path in Terstrunner command to resolve the issue.

     

    The correct format is as below:

    C:\Program Files\CA\DevTest\bin>TestRunner -t ../Projects/TestProject/Tests/SampleTestCase.tst -r ../Projects/TestProject/StagingDocs/Run1User1Cycle.stg -a -config ..
    /Projects/TestProject/Configs/project.config -cs local -m tcp://AHMMO05-5510:2010/Registry -u admin -p admin

     

    Thanks & Regards,

    Srikanth Gajawada