Request Specification Example 2 API Testing Part 30

preview_player
Показать описание


public class RequestSpecificationEampTest {
RequestSpecification requestSpecification;
@BeforeClass
public void beforeclass(){
requestSpecification=with()
.header("x-api-key","PMAK-631a2a89ef67cc30d8922311-2273650e3d64f42f372683dad1d843baf1");
}
@Test()
public void validateStatusCode() {
given()
.spec(requestSpecification)
.when().get("/workspaces")
.then().log().all()
.assertThat().statusCode(200);


}

}
=============================================================

Hi There ,
Welcome back to Ingenious TechHub Family.
This is Mohit Kumar Working in MNC as Consultant Lead Engineer and (I am an Entrepreneur ,Software Trainer & IT job adviser)
We work on for Your success .
============================================================
Core java Beginner to Master Udmy Course

Selenium WebDriver +Java-Basic to Advanced+ RealTime Project Udmy Course
=============================================================
Interview Programming Questions and Answer For Automation Testing Profile

============================================================
Automation testing interview questions and answers for 2 to 5 experience

Core java Free tutorials

Selenium Free Tutorials

Manual Testing Free tutorial

RealTime Interview For Automation Testing

Bangalore job Seekers | Fresher guidance for searching and getting job In IT Free videos
=======================================================================

============================================================
Note:- Please join facebook group page for future job notifications

=========================================================================
We provide Real Time Training for Different profile like Testing(Manual & Automation) & Development(Java & Python )
====================================================
Рекомендации по теме