All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.epam.jdi.http.cucumber.stepdefs.en.ServiceStepsEN Maven / Gradle / Ivy

There is a newer version: 1.1.34
Show newest version
package com.epam.jdi.http.cucumber.stepdefs.en;

import com.epam.http.requests.RestMethod;
import cucumber.api.java.en.When;

import static com.epam.http.performance.RestLoad.loadService;
import static com.epam.jdi.http.cucumber.Utils.*;

public class ServiceStepsEN {

    @When("^I load service for (\\d+) sec with get requests$")
    public void loadServiceForSecWithGetRequests(int seconds) {
        RestMethod getMethod = service.get().getGetMethod();
        performanceResult.set(loadService(seconds, getMethod));
    }

    @When("^I do status request with (\\d+) code$")
    public void iCallStatusRequest(int status) {
        restResponse.set(service.get().getStatus().call(String.valueOf(status)));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy