rest-assured

    2热度

    3回答

    有没有什么办法可以放心使用PowerMock,因为当我试图用放心的方式测试一个RESTful API时。 我想给PowerMock一个静态调用。 操作的代码: @POST @Produces("application/json") @Consumes(MediaType.APPLICATION_JSON) public Response createEntity(@Context HttpH

    -1热度

    2回答

    我是Rest Api测试的新手。初学者如何测试RestApis的指南?我将使用Rest-Assured来测试RestApis。请从头指导我。 问候。

    0热度

    1回答

    我正在测试使用RestAssuredMockMvc的其余控制器。这是我的代码 /*Repository*/ package com.rest.api.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframew

    0热度

    1回答

    Response response = given()。that()。parameter(“j_username”,userName).parameter(“j_password”,password).when()。post(“http://www.rest.com/qcbin/authentication-point/login.jsp?redirect-url=http%3A%2F%2Fx-p

    3热度

    2回答

    我想验证Json对象。我用https://code.google.com/p/rest-assured/wiki/Downloads?tm=2, import static com.jayway.restassured.module.jsv.JsonSchemaValidator.matchesJsonSchemaInClasspath; import static org.hamcrest.M

    4热度

    1回答

    获取错误,而试图测试在运行RestAssuredMockMvc和Spring: INFO - Mapped "{[/mysql/hello],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String ee.t.mysql.controllers.testCo

    0热度

    1回答

    我正在写一个API的测试,hmacsha1使用密钥对整个获取请求查询字符串进行散列并将其发送到标题中。所以我需要在执行测试之前计算这个值,并将其设置在标题中。像这样: expect() .statusCode(200) .given() .parameter("key", "abc") .parameter("param2", "def") .he

    7热度

    5回答

    我试图用放心的方式调用一个休息电话。我的API接受,"application/json"作为内容类型,我需要在通话中设置。我如下所述设置内容类型。 选项1 Response resp1 = given().log().all().header("Content-Type","application/json") .body(inputPayLoad).when().post(addUse

    1热度

    1回答

    我可以将REST请求内容与测试框架RESTITO内容完全匹配吗?可以说我从我的请求中现在有一个时间戳,但我不想匹配这个特定的值(我可能还不知道它)?

    2热度

    2回答

    我是REST-Api测试的新手。我开始使用Rest-Assured进行Rest-Api测试。我在我的第一个测试用例中遇到问题。 的代码如下: public void testGetSingleUser() { expect(). statusCode(200). body( "email", equals("[email protected]"),