Service Virtualization

Expand all | Collapse all

Nlot able to run Testcase using Testrunner

Jump to Best Answer
  • 1.  Nlot able to run Testcase using Testrunner

    Posted 01-17-2018 10:02 AM

    After running a test case using test runner I am getting below error,

    Commad:

    TestRunner -u admin -p admin -r "C:/DevTest/examples/StagingDocs/Run1User1Cycle.stg" -t "C:/DevTest/examples/MARInfos/Make_MARInfo&MARUtility_v1.tst" -a

     

    error:

     

    ============================================================================
    | Exception:
    ============================================================================
    | Message: Failed to stage test!
    ----------------------------------------------------------------------------
    | Trapped Exception: Failed to successfully create the archive.
    | Trapped Message: java.lang.RuntimeException: Failed to successfully create t
    he archive.
    ----------------------------------------------------------------------------
    STACK TRACE
    java.lang.RuntimeException: Failed to successfully create the archive.
    at com.itko.lisa.model.mar.ModelArchiveUtils.createArchive(ModelArchiveU
    tils.java:1255)
    at com.itko.lisa.model.mar.ModelArchive.buildOptimizedArchive(ModelArchi
    ve.java:337)
    at com.itko.lisa.model.mar.ModelArchive.buildArchive(ModelArchive.java:2
    15)
    at com.itko.lisa.model.mar.ModelArchive.<init>(ModelArchive.java:166)
    at com.itko.lisa.coordinator.TestRunner.stageTest(TestRunner.j
    See logs for more.

    Exiting with exit code 254 (INTERNAL ERROR)

     

    can anyone have idea of this error?

     

    Best Regards,

    Venkat Yedida 



  • 2.  Re: Nlot able to run Testcase using Testrunner

    Broadcom Employee
    Posted 01-17-2018 10:10 AM

    Test Runner does not understand DevTest projects, so you must provide the fully qualified path to the configuration file.

     

    For example:

    -config \path\to\lisa\home\examples\Configs\project.config

     

    See if adding the project.config file gets past this error.



  • 3.  Re: Nlot able to run Testcase using Testrunner

    Posted 01-17-2018 10:19 AM

    Thansk for your quick reply.

     

    Updated Command:

    TestRunner -u admin -p admin -r "C:/DevTest/examples/StagingDocs/Run1User1Cycle.stg" -t "C:/DevTest/examples/MARInfos/Make_MARInfo&MARUtility_v1.tst" -config C:/DevTest/examples/Configs/project.config -a

     

    still getting the same error.



  • 4.  Re: Nlot able to run Testcase using Testrunner

    Broadcom Employee
    Posted 01-17-2018 10:28 AM

    Can you attach the entire trunner.log here? 

     

    I am assuming the Registry, Coordinator and Simulator are running locally since you have not specified the Registry on the Testrunner command line.

     

    What version of DevTest?



  • 5.  Re: Nlot able to run Testcase using Testrunner

    Posted 01-17-2018 10:31 AM

    yes all the components are running in local. 

     

    DevTest version: 10.1



  • 6.  Re: Nlot able to run Testcase using Testrunner

    Broadcom Employee
    Posted 01-17-2018 10:36 AM

    What does you test case do?

     

    Does your test case run ok from the Workstation?



  • 7.  Re: Nlot able to run Testcase using Testrunner

    Posted 01-17-2018 10:39 AM

    Yes, it is working fine in my workstation, basically it will create mar info and mar files 

    Below is the log was taken from trunner.log(test runner):

     

    2018-01-17 15:33:27,265Z (16:33) [main] INFO System.out - Security is enabled in DevTest
    2018-01-17 15:33:28,528Z (16:33) [main] INFO System.out - User credentials are valid
    2018-01-17 15:33:28,655Z (16:33) [main] INFO com.itko.util.XMLUtils - The XML Doc to be opened: C:\DevTest\examples\lisa.project
    2018-01-17 15:33:29,020Z (16:33) [main] ERROR com.itko.lisa.model.mar.ModelArchiveUtils - Missing File: C:\DevTest\examples\MARInfos\Make_MARInfo&MARUtility_v1.tst
    2018-01-17 15:33:29,021Z (16:33) [main] ERROR com.itko.lisa.coordinator.TestRunner - Failed to stage test!
    2018-01-17 15:33:29,021Z (16:33) [main] WARN com.itko.lisa.test.LisaException - LisaException detail Failed to stage test! exception is java.lang.RuntimeException: Failed to successfully create the archive.
    2018-01-17 15:33:29,026Z (16:33) [main] ERROR System.err - Failed to stage or start test/suite
    2018-01-17 15:33:29,026Z (16:33) [main] ERROR System.err - Failed to stage test!Failed to stage test!



  • 8.  Re: Nlot able to run Testcase using Testrunner

    Posted 01-17-2018 11:30 AM

    Hi,

        You forgot to mention coordinator server name in the command.Try to include the following command

    TestRunner -u admin -p admin  -t "C:/DevTest/examples/MARInfos/Make_MARInfo&MARUtility_v1.tst"  -cs local/[Your remote Coordinator Server ]    -m [Your registry name if you have remote server]  -a

    Follow the documentation below.It will help you.

    Test Runner - DevTest Solutions - 8.0.1 - CA Technologies Documentation 

    Thanks,

    Vish



  • 9.  Re: Nlot able to run Testcase using Testrunner

    Posted 01-17-2018 01:35 PM

    to stage it remotely we need to use coordinator server otherwise if we are running localy test case and stagging doc are good enough...but i will give a try with that as well   



  • 10.  Re: Nlot able to run Testcase using Testrunner

    Broadcom Employee
    Posted 01-17-2018 01:59 PM

    Can you put your test case on this post?



  • 11.  Re: Nlot able to run Testcase using Testrunner
    Best Answer

    Broadcom Employee
    Posted 01-17-2018 04:11 PM

    Venkata,

     

    As per the new case you opened, we needed to do two things in order to resolve this:

     

    1. Changed the test case name from Make_MARInfo&MARUtility_v1.tst  Make_MARInfo_MARUtility_v1.tst.

    The trunner log file was showing an error that it could not find MARUtility_v1.tst , which means the & in the test case name was causing an issue.  

    2. The wrong folder was being specified for where test case was located.

     

    Regards,

    Marcy



  • 12.  Re: Nlot able to run Testcase using Testrunner

    Posted 01-17-2018 05:04 PM

    1. Yes we have changed the name

    2. I have tried with correct path earlier but it was not working.  I remember we have faced the issue during webex as well reason we are not able to stage it the mari and mar are getting deleted from the temp folder

     

    Thank you for your time today