Service Virtualization

  • 1.  Creating output files while running suite through jenkins

    Posted Jan 16, 2017 06:02 PM

    I have created a Test Framework, In each test case it will generate one output file. It works perfect on local machine. 

    But since I have integrated it with jenkins via Git, It is not generating those output files neither in Jenkins work space nor in GIT repository. 

    How can I generate those output files and can access them too?



  • 2.  Re: Creating output files while running suite through jenkins

    Broadcom Employee
    Posted Jan 16, 2017 10:47 PM

    Hi,

       Can you please tell us the path which you have mentioned to create/generate out put file. Since the test case will run on Simulator, it might have generated file on Simulator server. Please check the file on server where simulator is running.



  • 3.  Re: Creating output files while running suite through jenkins

    Posted Jan 17, 2017 10:45 AM

    I have given Lisa relative path, but i don't have access to simulator server. Is there any other way?



  • 4.  Re: Creating output files while running suite through jenkins

    Posted Jan 17, 2017 05:22 PM

    Is it being written to a lads folder?    You might want to write it to a location outside of a relative path that relates to the project,  since once a test is staged and ran,  the DevTest server will delete the work directory where the mar file was extracted, and in turn will delete your output file.

     

    I know customers will use an external property to write results to (eg  lisa_output_files=C:/outputfiles) 

     

    Hope this helps

    -Joe



  • 5.  Re: Creating output files while running suite through jenkins

    Posted Jan 19, 2017 04:35 PM

    Is there any property that i need to set in properties file?



  • 6.  Re: Creating output files while running suite through jenkins

    Broadcom Employee
    Posted Jan 18, 2017 10:38 PM

    If you don't have access to simulator server, give a path to shared folder (or a folder where server has access and you have access) and trigger the test.



  • 7.  Re: Creating output files while running suite through jenkins

    Posted Jan 19, 2017 04:36 PM

    I want it to update in Git repository if possible.



  • 8.  Re: Creating output files while running suite through jenkins

    Broadcom Employee
    Posted Jan 23, 2017 12:31 AM

    Hello Monika,

     

          Try using LISA_HOME instead of PROJ_LISA_ROOT for the relative path and let us know if that works.

     

    Thanks,

    Surya.



  • 9.  Re: Creating output files while running suite through jenkins

    Posted Jan 19, 2017 03:39 PM

    Mehta,

     

    Did Joe's and Srikanth's response answer your questions?



  • 10.  Re: Creating output files while running suite through jenkins

    Posted Jan 19, 2017 04:36 PM

    It ain't solved yet.



  • 11.  Re: Creating output files while running suite through jenkins

    Broadcom Employee
    Posted Jan 30, 2017 01:42 PM

    Did you try Surya's suggestion of going to LISA_HOME?  If that does not work, create a property that refers to a location outside of DevTest, but able for Jenkins to access.