Hi Saikiran,
It seems the test case is not accessible within the project. The API looks fine but you might have to use complete path for the testcase.
I would recommend put the absolute path of the test case instead of relative path and try. Do the same for staging doc as well.
Also, you must uncomment the lisa.portal.invoke.test.root property in lisa.properties (defualt value is
lisa.portal.invoke.test.root={{LISA_HOME}})
The value should be the base path needed to find the project or projects where the tests or suites are located.
Example, it wants the Lisa_Home directory as it goes to the examples directory for the tests and suites in that project.
Thanks.
------------------------------
Regards,
Vaibhav Jain
Capgemini
------------------------------
Original Message:
Sent: 04-10-2020 02:59 AM
From: Saikiran Garapati
Subject: Creation of MAR from TestSuite
Thanks Vaibhav for the reply. I am checking that one and let you know if i face any issues.
I am trying other option also from LISA INVOKE API. I am just trying to execute the below API and getting the error.
http://ABCD:XXXX/lisa-invoke/runTest?testCasePath=examples/Tests/test.tst&stagingDocPath=examples/StagingDocs/1user1cycle0think.stg
<message>An error occured in 'runTest'. Message: The test case is not in a project.
Here what i m doing is, I just staged that test case to coordinator server and hitting that API , Please let me know do i need to do anything other than this to resolve this error. Do i need to copy that test case in to registry under the mentioned path in that API or not required?
Original Message:
Sent: 04-10-2020 01:04 AM
From: Vaibhav Jain
Subject: Creation of MAR from TestSuite
Hi Saikiran,
Please follow below steps:
1. Create a MarInfo file
2. Create a Mar file
To create a MAR info file from an existing Test suite:
-->In the Project panel of DevTest Workstation, right-click the suite and select Create MAR Info File.
--> Enter a name for the MAR info file and select the configuration file and click OK
-->The .mari file is created in the same folder the suite resides in.
Once, the MarInfo file is created you can create a mar file from workstation and select Build Model Archive option. Another option is to use the MakeMar utility available in LISA_HOME\bin directory
Example: MakeMar --show=C:\Lisa\examples\MARInfos\AllTestsSuite.mari
you can execute MakeMar -h for help options
Thanks.
------------------------------
Regards,
Vaibhav Jain
Capgemini
Original Message:
Sent: 04-09-2020 03:04 AM
From: Saikiran Garapati
Subject: Creation of MAR from TestSuite
Hi Team,
Could you please let me know How to create mar from the test suite and what is the url to execute that mar file and run the test suites?
------------------------------
Regards,
SaikiranGarapati
------------------------------