Você está visualizando o conteúdo de ajuda da versão:
Automate the execution of UI tests in web browsers and provide a test result. AEM provides a framework for automating tests for your AEM UI. Using the framework, you write and run UI tests directly in a web browser. The framework provides the following tools:
- A javascript API for creating tests.
- A Test panel in the the touch-optimized UI for running tests.
Observação:
Have a look at the Hobbes.js API documentation.
Open the Testing Console to see the registered test suites. The Tests panel contains a list of test suites and their test cases.

Run a single test case from a test suite. When you run a test, the page changes as the test actions are executed. The test results appear after the actions have executed.
Icons indicate test results. Checkmark icons indicate a passed test:


Test cases execute sequentially in the order that they appear in the test suite. You can drill down into a test case to see the results of each action.

The following procedure steps you through the creation and execution of a test suite. The test uses the Geometrixx Outdoors sample web site. If you do not have the sample installed, you can easily modify the test to use a different web page.
-
Open CRXDE Lite in your web browser. (http://localhost:4502/crx/de)
-
Name Type Value categories String[] granite.testing.hobbes.tests dependencies String[] granite.testing.hobbes.testrunner Observação:
AEM Forms only
To test adaptive forms, add the following values to the categories and dependencies. For example:
categories: granite.testing.hobbes.tests, granite.testing.hobbes.af.commons
dependencies: granite.testing.hobbes.testrunner, granite.testing.hobbes.af
-
new hobs.TestSuite("Home Page Test Suite", {path:"/etc/clientlibs/myTests/myFirstTest/myTestSuite.js"}) .addTestCase(new hobs.TestCase("Navigate to home page") .navigateTo("/content/geometrixx-outdoors/en.html")) .addTestCase(new hobs.TestCase("Hover Over Topnav") .mouseover("li.topnav-item-1")) .addTestCase(new hobs.TestCase("Click Topnav Link") .click("li.topnav-item-1 a"));