Service Virtualization

 View Only
  • 1.  Can we activate different configs in Dev Test8.5 one after another through code

    Posted May 12, 2016 11:27 AM

    As mentioned i want to activate different configs based on my need instead of manually activating them

    eg:  I have 2 configs - Regression and Functional,

    First i will activate Functional config and run the test script, later i will activate Regression config, run the script

     

    So i want to know

      1] Can it be done through Ant script  ( if i integrate Jenkins-Ant-Lisa )

      2] Can it be done command prompt passing the variable

     

    Please let me know your thoughts, appreciate your help.



  • 2.  Re: Can we activate different configs in Dev Test8.5 one after another through code

    Posted Jun 02, 2016 11:50 PM

    I have the same problem as well, you can try below code.

     

    import com.itko.lisa.test.Configuration;

    //Configuration cnf = new Configuration()

     

     

    List L1 = testExec.getTestCase().getConfigurations();

    int i = L1.size();

    //L1.get(10);

    Configuration cnf = L1.get(10);

    testExec.getTestCase().setRealTimeConfig(cnf);



  • 3.  Re: Can we activate different configs in Dev Test8.5 one after another through code

    Posted Jun 03, 2016 09:11 AM

    Hi sjarali77,

     

    Did Fawaz's suggestion help to solve your issue? If so, could you please mark his answer as correct?

     

    Thanks,

    Melanie



  • 4.  Re: Can we activate different configs in Dev Test8.5 one after another through code

    Posted Jan 17, 2017 03:07 PM

    Satish,

     

    Did Bavas's recommendations help you out? If so, can you mark it correct?

     

    Regards,

    Reid