Package com.jayway.restassured.path.xml

Examples of com.jayway.restassured.path.xml.XmlPath


    }

    @Test
    public void testGetAlertCountXml() throws Exception {

        XmlPath xmlPath =
        given()
            .header(acceptXml)
        .expect()
            .statusCode(200)
            .log().everything()
        .when()
            .get("/alert/count")
        .xmlPath();

        xmlPath.getInt("value.@value");
    }
View Full Code Here


            .statusCode(201)
            .log().ifError()
        .when()
            .post("/resource/platforms");

        XmlPath xmlPath = response.xmlPath();
        Node resource1 = xmlPath.get("resource");
        Node platformIdNode =  resource1.get("resourceId");
        String platformId = platformIdNode.value();

        given().pathParam("id", platformId)
            .expect().statusCode(HttpStatus.SC_NO_CONTENT)
View Full Code Here

        .when()
            .post("/resource/platforms");

        int platformId=0;
        try {
            XmlPath xmlPath = response.xmlPath();
            Node resource1 = xmlPath.get("resource");
            Node platformIdNode =  resource1.get("resourceId");
            platformId = Integer.parseInt(platformIdNode.value());

            // Now update the description
            resource.setDescription("li la lu");
View Full Code Here

        .when()
            .post("/resource/platforms");

        int platformId=0;
        try {
            XmlPath xmlPath = response.xmlPath();
            Node resource1 = xmlPath.get("resource");
            Node platformIdNode =  resource1.get("resourceId");
            platformId = Integer.parseInt(platformIdNode.value());

            // Now update the description
            resource.setDescription("li la lu");
View Full Code Here

            .statusCode(201)
            .log().ifError()
        .when()
            .post("/resource/platforms");

        XmlPath xmlPath = response.xmlPath();
        Node resource1 = xmlPath.get("resource");
        Node platformIdNode =  resource1.get("resourceId");
        String platformId = platformIdNode.value();

        try {
            long now = System.currentTimeMillis()-100;
View Full Code Here

            .statusCode(200)
            .log().ifError()
        .when()
            .get("/reports");

        XmlPath xmlPath = response.xmlPath();
        assert xmlPath!=null;
        assert xmlPath.getNodeChildren("html.body.ul.li").size()== NUMBER_REPORTS;

    }
View Full Code Here

TOP

Related Classes of com.jayway.restassured.path.xml.XmlPath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.