1. Introduction to mabl
1.1 What is mabl?
mabl is a cloud-based, end-to-end test automation platform designed for Agile teams and DevOps workflows. It brings together functional UI testing, API testing, and monitoring, making it a comprehensive solution for continuous testing throughout your development lifecycle.
1.2 Key features
- Codeless Test Automation: mabl allows users to create and execute tests without any code.
- AI-Powered Test Creation: mabl leverages machine learning to automatically identify and adapt to changes in your application, reducing the time and effort spent on test maintenance.
- End to End Testing: mabl supports end-to-end testing across web applications, APIs, and mobile apps.
- Integration with CI/CD Pipelines: mabl integrates seamlessly with popular CI/CD tools like Jenkins, Bamboo, and others, allowing you to incorporate testing into your continuous integration and deployment pipelines.
2. Quick guide to import Postman collection to mabl’s test case
The mabl integration with Postman supports importing Postman collections into mabl as API tests.
2.1 Creating Your mabl Account
Start your journey by registering for a 14-day free trial account using your business email at https://www.mabl.com/trial-registration

2.2 Installing mabl
After registration and logging into mabl, download and install the mabl application to begin creating your automated tests.

2.3 Export Postman collection
In Postman, I have a collection, and I would like to export it:

To export a collection in Postman, simply click on the ‘…’ next to the collection’s name, select ‘Export’, and choose the desired format. Save the file to a convenient location.

2.4. Creating a new mabl application and environment
2.4.1 Environment
In mabl, an environment represents a specific deployment of your application that you want to test against. It could be a staging environment, a production environment, a development environment, or any other type of deployment you have.
Each environment in mabl has a base URL that is used for navigation during testing. This allows you to run the same test against different instances of your application simply by changing the environment, without needing to change the test itself.
To create a new Environment in mabl, navigate to the home page, click “New” and choose “Environment “, enter the application’s details such as name and URL, and click ‘Create’.

For more effective testing in mabl, you have the ability to configure new environments and add environment-specific variables according to your specific testing requirements.

2.4.2 Applications
Applications in mabl represent the list of applications you are testing.
To create a new Application in mabl, navigate to the home page, click “New” and choose “Application“, enter the application’s details such as name and URL, and click ‘Create’.

Select the environment that you have previously created

2.5. Creating a new API tests
2.5.1 Create API test
There are two ways to create new API test in mabl:
- Navigate to the home page, click “New” and choose “API test”:

- Navigate to the New test tab and choose “API test“

Input the required details and then click on the “Create test” button

2.5.2 Import test step from Postman collection
When creating a new API test, it’s necessary to include specific steps for the test to run. You have the option to manually add these steps or import a Postman API collection. In this instance, I’ll opt for the latter. Essentially, you would select “Import Postman API collection”, and then import the file that was previously exported from Postman.

Upon successful import, the methods will be displayed. You can then edit these to align with the context as needed

I want to create tests for a scenario: Verify the object is created successfully with flow as below:
POST Add Object -> GET Get Object By Id
2.5.3 Variables
Click on “Add row” to introduce variables. These can then be used to replace values in the request body, helping to avoid hard coding.

And use variables in the request body, URL:


2.5.4 Validation and variable assignment
2.5.4.1 Validation
Create assertions to validate the response

2.5.4.2 Variable assignment
mabl provides the functionality to assign values from a JSON response to variables, which can be useful in various scenarios. In my tests, I’ve assigned the “id” from the POST Object response to the variable “id“.

I used that ‘id‘ in a GET Object request and verified some validations, similar to the above method:


2.6 Test execution
Upon creating the tests, you can execute them to verify their success by clicking on “Run test”

3. Create mabl test plan and Slack integration
3.1. Create mabl test plan
Once you’ve clicked on “Create a plan”, a new page will open. Here, you can configure your plan. Provide a name for your plan, select the desired environment, and then add the tests you want to include. You can also set the frequency and schedule for the plan’s execution to automate your tests. After setting up all the details, click on “Save” to finalize your plan.

Upon successful creation of a new plan, the tests included can be executed by clicking on “Run”.


3.2. Slack integration
Integrating mabl with Slack can help to streamline your team’s communication and make it easier to share testing insights. Here’s a basic guide on how to set up the integration.
In Slack, select the workspace and channel that you would like mabl to post to (#testing)

In mabl, within the Settings tab, choose “INTEGRATIONS”. You will see some available integrations. Click on “Setup” in Slack.

Select the “testing” channel, which was previously created in Slack, and then click on “Allow”.

Configure some notifications for the channel

After setup, you will receive a notification from Slack confirming the successful addition of the integration


When you execute any plan, Slack will inform you about which plan is running and will also update you on the results

Conclusion
mabl supports us to automate API testing by importing Postman collections so that we can reduce manual effort, allow continuous testing, and improve software reliability and performance. It’s a streamlined, efficient solution that enhances productivity and collaboration during software development.
References
https://help.mabl.com