MABL : Codeless Automation Tool

     MABL For Automation Testing


1. What is MABL

  • The most important thing about mabl is you don’t require the coding skill , if you don’t have any idea about coding then also you can work with mabl.
  • Mabl is a cloud-hosted test automation platform that allows the software development team to create and run testing across CI/CD. 
  • The important features of mabl are auto-healing and visual testing that improves the quality and speed of the released pipeline. 
  • The system can be integrated with third-party applications like Slack, Bitbucket, and more. Developers can create scrip less tests by using Mabl's Google Chrome extensions. 
  • Mabl supports the browsers like Firefox, Chrome, Internet Explorer, and Safari with the cross-browser testing module. 
  • Users can create, execute, and maintain reliable tests that result in quality applications. 

2Installation 


  • After installing the mabl the first screen is login page where you need to login using id password.

  • If you haven't already, sign up for a free trial that includes all product features and free support via in-app chat or email to support@mabl.com.

  • In order to create and edit tests, you need to use Google Chrome and the mabl desktop app.
  • You will find a convenient link to download the desktop app on the dashboard when you first log in.

3. Create your First Test using MABL

  • Open the MABL app.
  • You will see the hamburger menu click on it.
  • Click on New Test for creating your first test.
  • So there will be two type of test :-
    • Browser Test 
    • API Test
  • Click on browser test :- then it will open the popup for more details.

  • Provide all the required information and add the url for which you want to perform testing :- click on create test button :- it will launch the browser with the mabl trainer.

  • MABL trainer is mainly used to record the browser interaction , so whatever we want to check we need to perform that actions with browser and trainer will save each interaction as step and add it with proper path with exact element.

  • Here I have just open the google and search for the “hina murdhani” for which trainer has recorded the steps.
  • Click on save button and then click on close button then you will redirect to Test tab in the mabl app. 
  • Now you are ready with your first test , you can run it by clicking on Run Test.
  • It will open the popup where there are two options.
    • Local Run 
    • Cloud Run
  • You can continue with the local run :- you need to select the browsers.
  • You can enable “Run Headlessly” if you want to run your test in headless mode.
  • You can enable “Keep Browser Open” if you want to open your browser while application is running.
  • Then click on start run.
  • Once the test run is started, click on the "Live" link to see detailed logs and other application mabl is capturing during the run.


  • It will launch the chrome browser and run the app.
  • It will open the command prompt where it will show the output of the test.
  • In the result you can see executed test step with a screenshot, DOM snapshot, HTTP Archive (HAR) file with network request data, speed index, performance trace, and more.

4. Waits in MABL

  • When we are interacting with the browser it will happen that some element takes time to load because of some load or network issues at that time we need to wait for stopping our test from getting failed.
    • Wait
    • Wait Until

5. How to use wait in MABL

  • In the mabl trainer window click on “insert step”( “ +” icon ) at bottom.

  • Click on wait option it will open two option wait and wait until.

  • Click on wait.


  • It will open the textbox where you can enter number of seconds you want browser to wait for the element.
  • Click on okay then you will be returned to the main trainer page, with the new wait step appearing in the "Steps" box.

6. How to use Wait Until in MABL


  • Follow above steps to add wait until just with one change “click on wait until” from the two options.
  • When you click on wait until it will open the popup where you have to select the element :- click on select :- select the element from the page for which mabl will wait for the further execution.
  • Once you select the element it will redirect to configure find block where you need to provide the more context about that element by selecting option eg. label , text etc.
  • After selecting the option click on ok :- it will redirect to configure find setting block , where you need to add the time for wait before mabl fail or auto heal if the element is not found within the given time.
  • Here auto heal means mabl will find the similar element and will continue the test execution and for the fail step mabl will stop the execution if element is not found.
  • Click on OK.
  • You will be returned to the main trainer page, with the new wait until step appearing in the "Steps" box. The selected attributes can be seen by hovering over "View criteria". The step can also be edited by clicking on the "View criteria" badge.

7. Is it possible to xpath with mabl ?? Yes 

  • Mainly QA Automation testers are familiar with the selenium and selenium use the “XPATH” for finding the element , so if you are one of them and you want to use xpath then we can also use xpath in the mabl.
  • Click on insert step (+) button in bottom of trainer.
  • Click on Find elements button.
  • It will open the popup with 4 questions 
    • Find Type 
    • Query Type 
    • Action 
    • Query
  • In the Find Type you need to select that which element you want to select eg.First element , last element etc.
  • In the Query type you need to select which type of element selector you want to use eg. xpath , css selector etc.
  • In the Action you need to select the action from the dropdown that you want to perform on selected element.
  • In the Query textbox you need to provide the path to that element for eg. if you have selected xpath then you can provide //a[contains(text(),'Sign in')] .
  • Click on okay it will add the step like Click on first <a> element matching xpath "//a[contains(text(),'Sign in')]".

8. Assertion In MABL

  • MABL provides the support for adding the assertions that mabl should use to confirm that your application is in a correct state at a specified step in a test run.
  • Currently, mabl supports the following assertion types.
  • Selected element is present
  • An element is not present
  • A specific attribute or property of the selected element (e.g. innerText) using one of the following assertion types:
    • Equals
    • Does not equal
    • Contains
    • Does not contain
    • Starts with
    • Does not start with
    • Ends with
    • Does not end with
    • Greater than
    • Less than
    • Greater than or equals
    • Less than or equals

9. Steps to add assertion

  • In the mabl trainer there is assert button (✔) beside the + icon at the bottom.
  • It will open the popup , so you need to select the element from the browser screen for which you want to apply assertion.

  • Once you select the element its open another page where you need to define more details about the assertion.

  • First Question is Assertion Type where you need to provide the type of assertion you want to perform eg. equals , grater than , less than etc.
  • 2nd question is Attribute/property where you need to select the attribute of the element on which you want to perform assertion. eg. className , id , value , name etc
  • Then there is 2 radio buttons 
    • Attribute 
    • Variable
  • You can select one of the option based on your requirement like if you want to match the attribute value then you have to select the attribute option and if you want to assert some of the variables like username , password then you can select the Variable option.
  • After selecting the attribute option you need to provide the value for that attribute for the match while performing assertion.
  • After that there is checkbox for continue on failure check that if you want to continue the execution if assertion fails.
  • There is option for crop screenshot to element check this if you want to crop the taken screenshot while performing assertion.
  • Click on OK , it will add the step for the assertion.

10. How to edit your test

  • If you want to edit your existing app then mabl provides the facility to edit your existing app.
  • Steps to edit your existing app.
  • Click on hamburger menu and go to tests.
  • Click on the test name which you want to edit.
  • Click on the button edit steps beside the Run test.
  • There will be 2 options 
    • Quick edit 
    • Launch trainer
  • Quick edit which lets you edit the test in the app, and Launch Trainer. If you choose Launch Trainer, you will be directed to the beginning of the test. Simply continue as you normally would through the test. If you want to cancel any changes, simple click the "Cancel" button at the bottom of the trainer. Your changes will only be saved if you click the "Save" button.
  • Selecting "Quick Edit" mode when editing a test pops the trainer into the mabl app itself, allowing you to edit most steps. You can edit almost everything, as long as it does not require interaction with the app under test. Because of this, creating new steps such as assertions and clicks, as well as replay, are not available in quick edit mode. Among the allowed features are: deleting steps, editing assertions, add waits, reordering steps, creating flows, and more.
  • Once you are done with editing you can click on save to save the changes. It will show the success message. You can click on close button to return to the application.

10. How to run your test

  • Open the MABL app.
  • Click on hamburger menu and then click on Tests.
  • Click on Test name which you want to run.
  • Then there will be RUN button click on that.
  • Then select the browser and click on start run button it will launch the browser and run the test.
                                    

                                                                                                                 - Hina Murdhani

Comments

Popular posts from this blog

PLAYWRIGHT : Automation Tool

CYPRESS AUTOMATION TOOL

.JAVA to .JAR Conversion

Difference of Opinion on Node vs Go

BlazeMeter : How to write Jmeter script without prior knowledge of Jmeter

Why node-red is use for embedded programming ?

API testing using postman

Loadium tool For jmeter script from POSTMAN

Software Testing Life Cycle(STLC)