Skip to main content
Version: 7.5.5

Adapters

What is an Adapter?

The general idea of an adapter in software development is identical to the one in the physical world. If you have been to different countries, you probably noticed that a lot of them are using differently shaped power sockets. Quite often, they are shaped in a way that the plug of your electrical device doesn’t fit. So, how do you connect the charger of your mobile phone or laptop to these power sockets?

The answer is simple. You get an adapter which you can put into the power socket and then you put your plug into the other end of the adapter. The adapter changes the form of your plug so that you can use it with the power socket.

Test Maker classifies adapters into 3 categories:

  • Web-based

  • Mobile-based

  • Unit-Based

Unit

Unit-Based

TestCafe

Web-based

Playwright

Web-based

Appium

Mobile-based

Selenium

Web-based

SauceLabs

Mobile-based

The following example shows how we can add both Playwright and Unit test Adapters.

import { Configuration,adapters } from "test-maker";

const testMakerCIConfig: Configuration = {
runner: {
adapters:[
adapters.playwright,
adapters.unit,
]
},
};

export default testMakerCIConfig;