Running a Test¶
poshi-ext.propertiesfile on your
poshi-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 be
Open terminal on the
poshi-standalonedirectory and run
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 Poshi.
Run the command
./gradlew.sh 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.