Running a Test
-
Open the
poshi-ext.propertiesfile on yourposhi-standalonedirectory 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-standalonedirectory and run./gradlew validatePoshi(gradlew.bat validatePoshion 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 runPoshito 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#CannotSearchForMyNamedirectory. For more information on test results, see Understanding Test Results.