Using Eggplant DAI
Eggplant DAI provides a seamless user experience by using machine learning algorithms to automate test cases and customer insights to generate tests based on the actual customer usage.
To use Eggplant DAI for either exploratory or regression testing, you need to create a model of the app or interface you want to test. You can then generate test cases to ensure that you reach your test coverage targets.
Build a Model
Plan and build your model. Use States and Actions to represent screens, pages, dialog boxes, and menus, as needed, to replicate your app or interface. Define possible transitions between states and actions that describe potential paths through your interface.
You can also add parameters to capture and provide values for states and actions, as needed. Your model can be simple or complex, depending on your testing needs.
Run the Model
When you run a model in Eggplant DAI, learning algorithms choose the specific path the test follows through the model, which can be different with each run.
Use the reports Eggplant DAI generates to check model coverage so that you can see whether you need to adjust the weighting of any actions or states. Reports can also show the overall success and failure rates of your model.
From Test Results you can check summary results information for all test runs against your model with multiple filtering options to help you to analyze and troubleshoot any issues. You can also view the details of specific test results to understand which parts of the model execute during a test run. The Coverage Heatmap is also useful to find out how many times the states and actions in your model have been hit by your test executions.
For regression testing, you can also define specific test cases and report on them.
Integrate with Eggplant Functional
Eggplant DAI works with Eggplant Functional to automate the testing process. You connect to Eggplant Functional by using the Eggplant DAI Agent. Create SenseTalk snippets in Eggplant Studio, then associate them with states and actions in your Eggplant DAI model. When you run a model that has associated SenseTalk snippets, those snippets execute on your system under test (SUT) as the model runs.