Get Started

Method 1: Installing via WordPress Admin Dashboard

  1. Download the Plugin:
    • First, download the plugin's .zip file from the source (e.g., WordPress.org or a third-party developer).
  2. Login to WordPress Admin:
    • Go to your WordPress admin panel (e.g., yourdomain.com/wp-admin).
  3. Navigate to Plugins:
    • On the left-hand side menu, hover over Plugins and click on Add New.
  4. Upload the Plugin:
    • At the top of the page, click on the Upload Plugin button.
    • Click Choose File and select the plugin .zip file you downloaded.
    • Click Install Now to upload the plugin.
  5. Activate the Plugin:
    • After the installation is complete, click the Activate Plugin link to enable the plugin on your site.

Method 2: Installing via FTP

  1. Download the Plugin:
    • As in the first method, download the plugin's .zip file from the source and extract the contents on your local machine. This will usually create a folder with the plugin's name.
  2. Connect to Your Website via FTP:
    • Use an FTP client (like FileZilla or Cyberduck) and connect to your website's server.
    • You’ll need FTP login details (hostname, username, and password), which you can get from your hosting provider.
  3. Navigate to Plugin Directory:
    • Once connected, go to the WordPress directory on your server. It’s typically located in the folder public_html.
    • Inside the WordPress root folder, navigate to /wp-content/plugins/.
  4. Upload the Plugin Folder:
    • Upload the extracted plugin folder (not the .zip file) into the /wp-content/plugins/ directory.
  5. Activate the Plugin:
    • After uploading, log in to your WordPress admin dashboard.
    • Go to Plugins > Installed Plugins and find the newly uploaded plugin in the list.
    • Click Activate to enable it.

Method 3: Installing via cPanel File Manager

  1. Download and Extract Plugin:
    • Download the plugin’s .zip file and extract the folder on your local machine.
  2. Access cPanel:
    • Log in to your hosting account’s cPanel (commonly found at yourdomain.com/cpanel).
  3. Open File Manager:
    • Navigate to File Manager in cPanel.
  4. Upload Plugin:
    • In File Manager, navigate to the directory wp-content/plugins/.
    • Click on Upload and select the .zip file of your plugin.
    • Once the file is uploaded, go back to the plugin directory and extract the .zip file.
  5. Activate the Plugin:
    • Log in to your WordPress admin dashboard, navigate to Plugins > Installed Plugins, and activate the plugin.

Troubleshooting:

  • Incorrect File Format: Ensure you are uploading the plugin in .zip format (for Method 1).
  • Permissions Issues: If you encounter permissions errors during FTP upload, check with your hosting provider to ensure you have write access to the server.

Introduction


It allows users to create and manage test flows, ensuring that all necessary steps are tested consistently without manual intervention. Each flow consists of multiple steps, representing different parts of your site's functionality, which can be run in sequence to detect potential issues.

How It Works

This plugin allows you to create, edit, and delete test flows—each containing steps that simulate user actions or system checks. Once a test flow is executed, the system automatically tracks its status, displaying results so you can easily see if the test passed or failed. The main features include:

  1. Create New Test Flow: Easily add new test flows by defining the name and determining whether the flow should stop on error.
  2. Status Tracking: Visually track the status of each flow to see whether it has passed, failed, or not been executed.
  3. Edit and Delete: Modify existing flows as needed, or delete them if they’re no longer relevant.

Creating a New Test Flow

To create a new flow:

  1. Navigate to the Test Flows section and click on the "New Test Flow" button.
  2. A form will appear where you need to:
    • Name your flow: Enter a descriptive name for easy identification.
    • Stop on Error: Enable this option if you want the flow to halt immediately upon encountering an error. If disabled, the flow will attempt to continue even after encountering issues.
  3. Once done, click Save to create your new flow.

Understanding Flow Status

After running a test flow, its status will be displayed:

  • Green with a checkmark: The flow has successfully passed all steps.
  • Red with an "X": The flow encountered an error and failed.
  • Grey: The flow has not been run yet.

The status indicator helps you quickly determine whether action is needed to resolve any issues with your site.

Editing a Flow

To modify an existing flow:

  1. Click on the Edit icon next to the flow name.
  2. You can update the name or change the option to stop on error, depending on your requirements.
  3. Save your changes once you're done.

Deleting a Flow

To delete a flow:

  1. Click on the Delete icon next to the flow you want to remove.
  2. Note: Deleting a flow will also remove all related runners (test executions) associated with it.

Ensure you no longer need the flow or its associated runners before confirming the deletion.

Start

  • Definition: This step initiates the test by directing the browser or test framework to navigate to a specific URL provided by the user.
  • How it Works: The user inputs the desired URL (e.g., https://example.com) where the testing begins. This simulates a real user opening a browser and navigating to the start page. The browser loads the page and waits for further instructions.


Input

Click

  • Definition: Simulates a user clicking on an element (e.g., a button or a link) on the web page.
  • How it Works: The plugin identifies the clickable element using its selector (like an ID, class, or XPath), and triggers a click event. This action mimics a mouse click, which could lead to form submissions, page navigation, or opening modals, depending on the element’s functionality.

Hover

  • Definition: Simulates a user hovering their mouse over a particular element on the webpage.
  • How it Works: The plugin moves the mouse cursor over a specified element without clicking. This is useful for triggering hover effects such as dropdown menus or tooltips. The element is identified by a selector, and the plugin activates the hover event, replicating a real user interaction.

Manual Input

  • Definition: Provides an opportunity for the user to input values or perform actions manually during the test run.
  • How it Works: The test pauses at this step, allowing the user to interact with the page directly, such as typing in a form field or clicking a specific button. Once the manual action is complete, the test continues with the next step.

Set Text

  • Definition: Automatically fills in a text field or text area with specified input.
  • How it Works: The plugin locates the text field or textarea using its selector and inputs the provided text into the field. This simulates user typing into a form field, commonly used for entering usernames, passwords, or search queries.

Set Select

  • Definition: Simulates selecting an option from a dropdown or selection field.
  • How it Works: The plugin identifies a select element on the page and sets a specific option based on the value or text provided by the user. This mimics a user selecting an option in a form, such as choosing a country from a dropdown menu.

Scroll

  • Definition: Emulates the action of scrolling through a page or a specific element.
  • How it Works: The plugin scrolls the webpage or a scrollable element (like a div) by a specified amount. This can be useful for triggering lazy-loaded content or ensuring elements become visible for further interaction.

Reload

  • Definition: Simulates refreshing or reloading the current web page.
  • How it Works: This step reloads the entire page, just as a user would press the browser’s refresh button. It can be used to test behavior after page reloads, such as checking if session data persists or if elements behave differently after reloading.


Check

Check Page Title

  • Definition: Verifies that the title of the current webpage matches the expected value.
  • How it Works: The plugin retrieves the title of the current page and compares it to the expected title provided by the user. This is useful to confirm that the correct page is loaded, as the title is often a key indicator of page content.

Check Text

  • Definition: Verifies that specific text is present within a non-input field element, such as a <div>, <span>, or <p>.
  • How it Works: The plugin searches for the element containing the expected text using a selector. It then checks if the actual text of that element matches the expected value, ensuring the page content is correct.

Check Value

  • Definition: Validates the value of form field elements like input, textarea, or select.
  • How it Works: The plugin locates the input element using its selector and retrieves its current value. This value is then compared to the expected value to ensure that form fields are correctly populated, such as in a form submission scenario.

Check Attribute

  • Definition: Validates that a specific attribute of an element has the expected value.
  • How it Works: The plugin identifies the target element and retrieves the value of a specified attribute (such as href, src, alt, or class). It compares the actual attribute value with the expected one to confirm that the element is correctly configured.

Check Element Count

  • Definition: Verifies the number of occurrences of certain elements (e.g., li, div, option) on the page matches the expected count.
  • How it Works: The plugin finds all elements of a certain type or class on the page (e.g., list items in a navigation menu) and counts them. It checks if the number of these elements matches the expected count, ensuring page structure or dynamic content is loaded properly.

Check Visibility

  • Definition: Checks if a specified element is visible or hidden on the page.
  • How it Works: The plugin identifies an element and verifies its visibility status by determining if the element is displayed on the page or hidden (using properties like display: none or visibility: hidden). This ensures that elements are correctly shown or hidden based on expected behavior.

Check Data

  • Definition: Validates data stored in the browser’s local or session storage, using a user-assigned name and value.
  • How it Works: The plugin retrieves the stored data (such as values or attributes of elements) from the browser’s local or session storage based on a key that the user assigns. It also supports retrieving dynamic data through shortcodes (e.g., generating the current date or timestamp). The retrieved value is compared with the expected value to ensure data persistence or accuracy, particularly useful for validating state management or temporary storage in web applications.


Delay

Delay

  • Definition: Pauses the execution of the test for a specified amount of time (in seconds).
  • How it Works: The plugin introduces a delay before proceeding to the next step. The user defines the number of seconds to wait. This is useful for simulating real-world pauses, such as waiting for animations to complete or content to load fully.

Wait To

  • Definition: Pauses the test execution until a specific element performs a certain action (e.g., becomes visible, clickable, or contains text).
  • How it Works: The plugin waits for an element on the page to meet certain conditions (such as appearing, being enabled, or having specific content) before continuing with the test. This ensures that the test does not proceed until the element is ready for interaction.


Data

Element Data

  • Definition: Stores the value or attribute of an element into a data variable for later use.
  • How it Works: The plugin extracts the value (e.g., input field value) or a specified attribute (e.g., src, href) of an element. The extracted data is stored in a named variable, which can be used in subsequent steps, allowing for dynamic interactions based on real-time data.

Store Data

  • Definition: Allows users to store dynamic data into a variable, which can include system-generated values like date and timestamp, or data extracted from elements.
  • How it Works: The user can create and name a data variable and assign it a value from predefined shortcodes (such as the current date or timestamp), or from previously stored data. This allows flexibility in using dynamic content throughout the test, making it possible to validate or reuse information as the test progresses.


How to use the steps

  1. Drag and Drop Step to Add to Test Flow
    • To begin creating a test flow, the user can drag and drop a desired step from the available list into the blank section of the test flow editor. This simple action adds the step to the sequence, allowing the user to start building their automated test case.
  2. Reordering Steps
    • The user can sort the steps by dragging and dropping them in the desired order within the test flow. This flexibility ensures the test steps follow the exact sequence required for the scenario being tested.
  3. Double-Click to Configure a Step
    • Once a step is added, the user can double-click on the step to open a popup. This popup will contain input fields where the user can enter the necessary information for the step to function properly. For example, in a “Click” step, the user might input the element selector, while in a “Check Data” step, they might input the key-value pair for browser storage.
  4. Removing a Step
    • To remove a step from the flow, the user can select the step and press either the Backspace or Delete key. This will instantly remove the step from the test flow, simplifying the process of making adjustments or corrections.
  5. Saving the Test Flow
    • Once all steps are added and configured, the user can save the test flow by clicking the Save button located in the top right corner of the interface. This action saves the current configuration of the test flow for later execution.

XPath Selector

  • Definition: XPath is one of the methods used to locate elements on a webpage by their path in the document structure.
  • Recommendation: It is recommended to use the SelectorsHub Chrome Plugin for easily obtaining the XPath of any element. This tool provides a straightforward way to generate precise XPath selectors, saving time and improving accuracy when setting up your automation steps.

Class Selector

  • Definition: The Class selector is used to locate elements based on the class name or names assigned to them in the HTML structure.
  • How it Works: When using the Class selector, the user must provide the class name(s) of the element. If an element has multiple classes, the user can input multiple class names, separated by spaces, to uniquely identify the element.
  • Example: If an element has the class button primary, the user can input both class names, and the plugin will locate that specific element on the page.
  • Note: Ensure that the correct class names are used, as class names are often shared by multiple elements. Using a combination of class names can narrow down the selection.

ID Selector

  • Definition: The ID selector is used to uniquely locate an element on the page by its ID attribute, as each element should have a unique ID.
  • How it Works: When using the ID selector, the user needs to provide the ID of the target element. The form will accept the ID either with or without the # prefix, making it flexible for users to input the ID in their preferred format.
  • Example: For an element with the ID submit-button, the user can simply input submit-button or #submit-button, and the plugin will recognize it.

Variables and Dynamic Data

  • Using Variables: In any step that supports dynamic input, the user can type the character "$" to open a popup displaying available variables. These variables may include dynamically generated data such as timestamps, or previously stored values from earlier steps (e.g., using the Element Data or Store Data steps).
  • Once the popup appears, the user can select the desired variable to insert it into the field. This allows flexibility in testing scenarios where values may change or need to be reused dynamically.

The Runner is a core feature in the automation testing plugin that executes the user-defined steps within a flow and records the outcomes of each step. It provides real-time feedback on whether each step in a test has passed or failed, ensuring a transparent and efficient process for troubleshooting and validation.

Key Responsibilities of the Runner:

  1. Execute Steps: The runner follows the sequence of steps laid out by the user and performs them in the specified order.
  2. Check Step Results: After executing each step, the runner determines if the step passes or fails based on the expected conditions and outputs.
  3. Record Run History: Every run is recorded, capturing the outcomes of all steps. This log can be accessed later for reviewing past test runs and troubleshooting issues.
  4. Summarize Results: The runner provides a clear summary of which steps have passed or failed, helping users quickly identify problematic areas.

Viewing Previous Results:

To view the results of past test runs, users can click the "View Results" button. This will direct the user to a screen where all previously run tests (runners) are listed, along with their respective statuses (e.g., Passed, Failed).

View Results Page:

  • List of Runners: A table or list displaying all executed runners.
  • Status: Each runner will have a status indicator, such as "Passed" or "Failed", to provide a quick overview.
  • Detailed Logs: Users can click on a runner to view the detailed logs, including which steps passed or failed.

This system helps maintain a clear history of all test runs, making it easier to trace issues and ensure the consistency of automation tests.

© 2024 autoqa - Juls Terobias