Dawn C Simmons is available for your Digital Transformation needs.

Dawn C Simmons - Digital Business Process
Table of Contents
< All Topics
Print

AutomatePro AutoTest: Getting Started

AutomatePro AutoTest: Getting Started: Welcome to the definitive guide on AutomatePro AutoTest! Today’s digital world, enriched with seamless operation of your ServiceNow applications.

Imagine quickly validating every change, update, or new feature in your ServiceNow environment without the hassle of manual testing. By following step-by-step instructions, you will streamline testing workflows, resolve issues faster, and deliver higher-quality services to your users. Let’s embark on this journey to revolutionize your testing approach and ensure your ServiceNow applications run flawlessly.

Define Your Test Plan

First, begin by creating a comprehensive test plan. This plan should encompass all the business processes you intend to test. For instance, design a test plan for the “Emergency Change Workflow” within your change management process.

Create Test Blocks

Next, proceed to break down your test plan into smaller, manageable test blocks. Each test block focuses on a specific part of the process. For example, include steps such as “Submit Change,” “Resolve Change,” and “Verify Email Notification.”

Define Test Steps

Then, within each test block, define the individual test steps. Detail the actions required to complete the test block. For instance, specify steps like “Navigate to the change form” or “Enter a description in the field.”

Validate Fields

Moreover, ensure you test each field and validation within the form correctly. Include checks like “Confirm the field is displayed” or “Verify the field is mandatory.”

Creating and Running Tests

Creating a Test

Initially, right-click to create a new test. Fill in the necessary details such as the test name, description, and other relevant fields.

Adding Test Steps

Subsequently, add steps to your test by selecting actions from a predefined list. Choose actions like “Navigate to the create new module” or “Validate the category field.”

Execute the Test

After defining your test steps, execute the test. This involves creating a test run record and running the test in the desired environment.

Review Test Results

Following the test execution, thoroughly review the results. If any test fails, analyze the failure by examining screenshots and error logs. Update the test steps as necessary and re-run the test.

Automating Test Execution

Scheduling Test Runs

To ensure continuous monitoring, utilize the scheduling feature to automate test execution. Schedule tests to run at specific times, such as nightly or weekly.

Creating Regression Packs

Additionally, group your tests into regression packs. This method allows you to run multiple tests together, ensuring all related functionalities are tested simultaneously.

Managing Defects

Furthermore, track and manage defects identified during test runs. Use the defects manager to categorize, prioritize, and assign defects for resolution.

Advanced Features

Reusable Test Blocks

Create reusable test blocks for common processes. This strategy saves time by allowing you to use the same test blocks across different test plans.

Custom Actions and Checks

Define custom actions and checks for specific validation needs. This includes creating actions to interact with elements in iframes or shadow roots.

Actions in AutomatePro AutoTest: Getting Started

Maximize the efficiency and accuracy of your test scripts with AutomatePro by following these top tips. These guidelines will help you streamline your testing workflow and ensure comprehensive coverage.

Understand Action Types

First, familiarize yourself with the different action types in AutomatePro. Know the various categories, such as navigation, input, validation, and custom actions. This understanding helps you choose the right action for each test step.

Plan Test Steps

Next, plan your test steps carefully. Outline the sequence of actions needed to thoroughly test your business processes. Start with navigation actions, move to input actions, and finish with validation actions.

Utilize Predefined Actions

Furthermore, leverage predefined actions to save time. AutomatePro offers many predefined actions for common tasks. For example, use these actions to log in, navigate to modules, or validate fields.

Customize Actions

However, when predefined actions don’t meet your needs, create custom actions. Custom actions address unique scenarios and ensure your test script covers all specific requirements.

Organize Logically

Also, organize your actions logically within the test script. Group related actions together to maintain a clear and structured flow. This organization improves readability and simplifies troubleshooting.

Use Descriptive Names

Moreover, name your actions descriptively. Clear and concise names like “NavigateToChangeForm” or “ValidateMandatoryFields” make your test script easy to understand at a glance.

Leverage Parameters

Additionally, take advantage of action parameters to enhance flexibility. Define parameters for actions to easily modify inputs and conditions without altering the entire test script.

Validate Intermediate Steps

Furthermore, validate intermediate steps to ensure the script is proceeding correctly. Include validation actions at key points to verify each step’s success before moving on.

Document Actions

Also, document each action within your test script. Use comments to explain the purpose and expected outcome of each action. This documentation aids in maintenance and helps others understand the script.

Review and Optimize

Finally, regularly review and optimize your test scripts. Update them to reflect changes in your business processes and continuously look for improvements to enhance efficiency.

Great Ideas for AutomatePro AutoTest: Getting Started Model Blocks

Checks in AutomatePro AutoTest: Getting Started

Using AutomatePro checks in your test scripts boosts accuracy and efficiency. These checks ensure each step meets expected criteria, guaranteeing reliable tests. Here’s how to utilize AutomatePro checks effectively.

Integrate Checks Early

Firstly, integrate checks early in your test planning. As you define your test steps, identify where and how checks will validate your actions. This proactive approach ensures you verify every critical aspect from the start.

Define Specific Conditions

Secondly, define specific conditions for your checks. AutomatePro offers various checks, such as field visibility, data accuracy, and system responses. By clearly outlining these conditions, you create precise and effective checks.

Use Predefined Checks

Moreover, leverage predefined checks provided by AutomatePro. These checks cover common validation needs, saving you time and effort. For instance, confirm fields are mandatory, editable, or display correct values using predefined checks.

Customize When Needed

However, create custom checks when predefined ones don’t meet specific needs. Custom checks offer flexibility for unique conditions or complex scenarios, ensuring comprehensive coverage.

Place Checks Strategically

Furthermore, place checks strategically within your script. Position them at crucial points to catch errors early. For example, after data entry actions, verify correct data is saved and displayed.

Combine Multiple Checks

Additionally, combine multiple checks for thorough validation. After a form submission, check that the form is saved correctly, the confirmation message appears, and the data reflects in the database.

Document Each Check

Also, document each check clearly within your script. Explain each check’s purpose and expected outcome in comments. This documentation maintains clarity and ease of understanding.

Use Real-Time Feedback

Moreover, take advantage of real-time feedback during test execution. Real-time feedback shows which checks pass or fail immediately, enabling quick issue identification and resolution.

Adjust Based on Results

Furthermore, adjust checks based on test results. If a check fails, investigate the cause, update the script or system, and re-run the checks. This iterative approach refines tests and improves accuracy.

AutomatePro AutoTest: Getting Started  with Checks

Actions in Test

Using Actions in AutomatePro AutoTest

Effectively using actions in AutomatePro AutoTest enhances your testing process. These actions automate tasks, ensuring accuracy and efficiency. Here’s how to utilize them optimally.

Understand Action Types

First, understand the different action types available. AutomatePro provides various actions like navigation, input, validation, and custom actions. Knowing these types helps you choose the right action for each test step.

Plan Test Steps Carefully

Next, plan your test steps meticulously. Outline the sequence of actions needed to thoroughly test your business processes. Start with navigation actions, then move to input actions, and finish with validation actions. This structured approach ensures comprehensive testing.

Leverage Predefined Actions

Furthermore, leverage predefined actions whenever possible. AutomatePro offers a wide range of predefined actions for common tasks, saving you time and effort. For instance, use predefined actions to log in, navigate to modules, or validate field values.

Create Custom Actions When Necessary

However, create custom actions when predefined ones don’t meet your specific needs. Custom actions provide flexibility to address unique scenarios, ensuring your test script covers all requirements comprehensively.

Organize Actions Logically

Moreover, organize your actions logically within the test script. Group related actions together to maintain a clear and structured flow. This organization enhances readability and simplifies troubleshooting.

Use Descriptive Names

Additionally, use descriptive names for your actions. Clear names like “NavigateToChangeForm” or “ValidateMandatoryFields” make your test script easy to understand at a glance.

Leverage Action Parameters

Furthermore, take advantage of action parameters to enhance flexibility. Many actions in AutomatePro allow you to define parameters reusable across different test steps. This feature enables easy modifications without altering the entire test script.

AutomatePro AutoTest: Getting Started Actions

Expand as needed with Custom Actions and Checks

Furthermore, define custom actions and checks for specific validation needs. To do this:

  1. Create Custom Actions: Begin by selecting the elements you need to interact with. For instance, if you need to work with elements inside iframes, identify those elements and create actions that can navigate into the iframe and perform the necessary operations.
  2. Interact with Shadow Roots: Similarly, for elements within shadow roots, create actions that expand the shadow root before interacting with the elements inside. Specify the paths to these elements to ensure accurate interaction.
  3. Validate Custom Checks: Define custom checks to validate specific conditions. This could include verifying that certain elements are present, ensuring fields are editable or read-only, and confirming that particular values are displayed.

By defining these custom actions and checks, you tailor your automated tests to meet your unique requirements, enhancing the accuracy and reliability of your test outcomes.

Quick Start AI features

Additionally, leverage Quick Start AI to generate automated tests based on existing records. This feature intelligently populates test details automatically, significantly reducing test preparation time. Quick Start AI analyzes your existing records, understands the required test parameters, and sets up comprehensive tests without manual input. As a result, you save considerable time and ensure accuracy by relying on AI-driven automation.

AI Generated Test Run: AutomatePro AutoTest: Getting Started

When setting up a test run, always name the top portion of the Test Run form simply by the product and what the test will do. For instance, if you’re testing the emergency change workflow in the change management module, you should name it “Change Management – Emergency Change Workflow.”

Now, let’s explore a typical test run execution example to illustrate the process. Begin by clicking on ‘Create Test Run’ and name it appropriately. For example, you might call it “Change Management – Emergency Change Workflow Test.” Next, select the environment in which the test will run, such as a UAT or production environment. Define any specific parameters or configurations needed for the test. This could include user roles, data sets, or specific conditions to be met.

After setting up the parameters, click ‘Run Test’ to initiate the execution. As the test runs, monitor the progress through the real-time dashboard provided by AutomatePro. Once the test completes, thoroughly review the results. Check for any failed steps, analyze error logs, and look at screenshots to understand what went wrong. If there are any failures, update the test steps accordingly and re-run the test to ensure the issues are resolved.

AI Generated Test Block Results

Example from the Test Block (Create Incident Record) Test Block Steps

AutomatePro AutoTest: Getting Started Resources: