2024-08-11T12:36:20 Status: #blog #moc Tags: #altova #mobiletogether #development #softwaredevelopment #xquery #xpath Links: [[Altova]] | [[MobileTogether]] | [[Mobile App Development]] | [[Software Development]] | [[XQuery]] | [[Standards]] | [[ActionTrees Visual Programming Language]] | [[App Simulator]] | [[App Debugger]] # App Tester To create reliable and high-quality [[Mobile App Development|mobile apps]] and [[enterprise solutions|Enterprise Solutions]], you need the right tools for debugging your application code as well as automating the testing process as part of your QA lifecycle. MobileTogether provides an integrated App Tester and [[App Debugger]] right in the MobileTogether Designer app development environment working hand-in-hand with the [[App Simulator]]. ## Automated Testing Feature in MobileTogether MobileTogether’s [Automated Testing](https://www.altova.com/manual/MobileTogether/mobiletogetherdesigner/mtdautotest.html) feature is a powerful tool that allows developers to create, manage, and execute automated test cases for mobile solutions developed within the platform. This feature is designed to enhance the development lifecycle by providing robust testing capabilities directly within the MobileTogether environment, ensuring that your mobile solutions perform as expected under various conditions. ![[RunMenu.png]] Automated Testing in MobileTogether is fully integrated with the [[App Simulator]] via the *Run* menu and streamlines the process of validating your mobile applications by automating repetitive testing tasks, allowing for consistent and thorough testing. This reduces the chances of human error and increases the reliability of your applications before deployment. Whether you're developing for iOS, Android, or other platforms, Automated Testing in MobileTogether ensures that your solutions are robust, reliable, and ready for production. ### Recording a Test Case [Recording a test case](https://www.altova.com/manual/MobileTogether/mobiletogetherdesigner/mtdautotest_record.html) in MobileTogether is intuitive and straightforward. The process involves interacting with your mobile application as a typical user would. The actions, inputs, and navigation steps are automatically captured and recorded by MobileTogether, creating a reusable test script. All functions to record and playback test cases can also be found in a special toolbar: ![[TestCaseToolbar.png]] 1. **Start Recording**: Initiate the recording process from the MobileTogether Designer interface. 2. **Perform Actions**: Navigate through your mobile application, perform actions such as clicking buttons, filling out forms, and submitting data. Every interaction is logged. 3. **Stop Recording**: Once all necessary actions are performed, stop the recording. The recorded actions are then saved as a test case. These recorded test cases can be used to ensure that specific functionalities work as expected after every update or modification to the application. ### Playing Back a Test Case [Playing back a test case](https://www.altova.com/manual/MobileTogether/mobiletogetherdesigner/mtdautotest_playback.html) allows you to validate that your mobile application behaves consistently across different environments and after various changes have been made to the project. This is essential for regression testing, where you want to ensure that new updates do not break existing functionality. 1. **Select a Test Case**: Choose from your list of recorded test cases within the MobileTogether Designer. 2. **Run the Test**: Execute the test case. The recorded actions are automatically played back in the MobileTogether Simulator or on a connected device. It is possible to adjust the playback speed of the tests to ensure that time-sensitive actions are taken exactly at the right moment. 3. **Review Results**: After playback, the results are displayed, highlighting any deviations or errors encountered during the test. This feature ensures that your application’s functionality remains intact throughout the development process. ### Managing Test Cases and Runs MobileTogether provides comprehensive tools for [managing your test cases and runs](https://www.altova.com/manual/MobileTogether/mobiletogetherdesigner/mtdautotest_manage.html). This includes organizing test cases into suites, tagging them based on functionality, and scheduling test runs. 1. **Test Case Table**: Shows all previously recorded test cases and any particular test runs that have already been executed for those test cases. 2. **Comparing test runs**: The results of different test runs can be compared. 3. **Test Case and Recording Options**: You can adjust the playback speed and the data collection options here. ![[ManageTestCasesAndRuns.png]] Management tools ensure that you maintain control over the testing process, allowing for efficient tracking and resolution of issues. ### Deploying Test Cases to the Server For more extensive testing scenarios, especially in enterprise environments, [test cases can be deployed to the MobileTogether Server](https://www.altova.com/manual/MobileTogether/mobiletogetherdesigner/mtdautotest_deploy.html). This allows test cases to be run in a production-like environment, providing insights into how the application will perform in real-world conditions. 1. **Deploy Test Cases**: Upload test cases to the MobileTogether Server from the Designer. ![[DeployingTestCases.png]] 2. **Managing test cases on the server**: Manage the test cases on the server, and activate them for playback on client devices. 3. **Monitor and Analyze**: Use server logs and the Automated Tests page to analyze the behavior of your application. After a test case is played back on a client, the playback results are stored on the server as a test run and displayed on the Automated Tests page: ![[mtdautotestserverplaybacks.png]] ### Comparing Test Runs After executing test cases, MobileTogether allows you to compare the results of different test runs. This is particularly useful for regression testing and for verifying that changes to the codebase do not introduce new bugs. 1. **Select Test Runs**: Choose two or more test runs to compare. 2. **Analyze Differences**: The comparison tool highlights differences in outcomes, such as variations in execution time, what actions were taken in different runs, success rates, or encountered errors, as well as the resulting state of the data sources and controls. 3. **Identify Regressions**: Quickly identify if a recent change has introduced any issues by comparing with a known successful run. This feature is invaluable for maintaining the quality and reliability of your mobile applications over time. ![[CompareTestCasesAndRuns.png]] With MobileTogether’s Automated Testing feature, you gain a comprehensive suite of tools designed to enhance the quality of your mobile applications. From initial development through to deployment, Automated Testing ensures that your applications meet the highest standards of performance and reliability. --- # References - [[MobileTogether]] - [[Mobile App Development]] - [[ActionTrees Visual Programming Language]] - [[App Simulator]] - [[App Debugger]] - https://www.altova.com/mobiletogether/app-development#test-app - https://www.altova.com/manual/MobileTogether/mobiletogetherdesigner/mtdautotest.html