Running a Test
-
Open the
poshi-ext.properties
file on yourposhi-standalone
directory and add the following line, replacing the TestCaseFileName#TestCaseName with the one you created in Creating A Testcase file. If you followed the provided testcase and test name, it should beLiferayLearnSearch#CannotSearchForMyName
.test.name=LiferayLearnSearch#CannotSearchForMyName
-
Open terminal on the
poshi-standalone
directory and run./gradlew validatePoshi
(gradlew.bat validatePoshi
on Windows). This runs poshi validation which checks for errors in syntax, invalid functions, and other errors. If there are no errors, validation should run successfully. If there are errors, see Debugging Tests. -
Run the command
./gradlew runPoshi
to run the test. A browser should pop up and automatically run the test without user input. -
Once complete, the results can be viewed in the
poshi-standalone/test-results/LiferayLearnSearch#CannotSearchForMyName
directory. For more information on test results, see Understanding Test Results.