API testing
import com.shaft.driver.SHAFT;
import org.testng.annotations.Test;
public class CountryApiTest {
@Test
public void getCountryByCapital() {
new SHAFT.API("https://restcountries.com/v3.1/")
.get("capital/Cairo")
.perform()
.assertThatResponse()
.extractedJsonValue("[0].name.common")
.isEqualTo("Egypt")
.perform();
}
}
Continue with request building, authentication, and response assertions.