cucumber.api.PendingException Java Examples

The following examples show how to use cucumber.api.PendingException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReceiveSteps.java    From tessera with Apache License 2.0 7 votes vote down vote up
public ReceiveSteps() {
    Given("Party as been sent transaction data", () -> {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    });

    When("Party receives request for transaction from Quorum peer", () -> {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    });

    Then("Party returns transaction data", () -> {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    });

    Then("Party data not found error", () -> {
        // Write code here that turns the phrase above into concrete actions
        throw new PendingException();
    });
}
 
Example #2
Source File: MySeleniumStepDefinitions.java    From senbot with MIT License 5 votes vote down vote up
@Given("^I am logged in as a \"(.*)\" user$")
public void I_am_logged_in_as_a_x_user(String userType) {
	GenericUser genericUser = getReferenceService().getUserForUserReference(userType);
	//TODO: login using the credentials of this referenced user

	throw new PendingException("Implement this step definition");
}
 
Example #3
Source File: AllureCucumber4Jvm.java    From allure-java with Apache License 2.0 5 votes vote down vote up
private void handlePickleStep(final TestStepFinished event) {

        final Status stepStatus = translateTestCaseStatus(event.result);
        final StatusDetails statusDetails;
        if (event.result.getStatus() == Result.Type.UNDEFINED) {
            updateTestCaseStatus(Status.PASSED);

            statusDetails =
                    getStatusDetails(new PendingException("TODO: implement me"))
                            .orElse(new StatusDetails());
            lifecycle.updateTestCase(getTestCaseUuid(currentTestCase.get()), scenarioResult ->
                    scenarioResult
                            .setStatusDetails(statusDetails));
        } else {
            statusDetails =
                    getStatusDetails(event.result.getError())
                            .orElse(new StatusDetails());
            updateTestCaseStatus(stepStatus);
        }

        if (!Status.PASSED.equals(stepStatus) && stepStatus != null) {
            forbidTestCaseStatusChange.set(true);
        }

        final TagParser tagParser = new TagParser(currentFeature.get(), currentTestCase.get());
        statusDetails
                .setFlaky(tagParser.isFlaky())
                .setMuted(tagParser.isMuted())
                .setKnown(tagParser.isKnown());

        lifecycle.updateStep(getStepUuid((PickleStepTestStep) event.testStep),
                stepResult -> stepResult.setStatus(stepStatus).setStatusDetails(statusDetails));
        lifecycle.stopStep(getStepUuid((PickleStepTestStep) event.testStep));
    }
 
Example #4
Source File: AllureCucumber2Jvm.java    From allure-java with Apache License 2.0 5 votes vote down vote up
private void handlePickleStep(final TestStepFinished event) {

        final Status stepStatus = translateTestCaseStatus(event.result);
        final StatusDetails statusDetails;
        if (event.result.getStatus() == Result.Type.UNDEFINED) {
            updateTestCaseStatus(Status.PASSED);

            statusDetails =
                    getStatusDetails(new PendingException("TODO: implement me"))
                            .orElse(new StatusDetails());
            lifecycle.updateTestCase(getTestCaseUuid(currentTestCase), scenarioResult ->
                    scenarioResult
                            .setStatusDetails(statusDetails));
        } else {
            statusDetails =
                    getStatusDetails(event.result.getError())
                            .orElse(new StatusDetails());
            updateTestCaseStatus(stepStatus);
        }


        if (!Status.PASSED.equals(stepStatus) && stepStatus != null) {
            forbidTestCaseStatusChange = true;
        }

        final TagParser tagParser = new TagParser(currentFeature, currentTestCase);
        statusDetails
                .setFlaky(tagParser.isFlaky())
                .setMuted(tagParser.isMuted())
                .setKnown(tagParser.isKnown());

        lifecycle.updateStep(getStepUuid(event.testStep),
                stepResult -> stepResult.setStatus(stepStatus).setStatusDetails(statusDetails));
        lifecycle.stopStep(getStepUuid(event.testStep));
    }
 
Example #5
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 5 votes vote down vote up
@Given("^I want to write a step with precondition$")
public void i_want_to_write_a_step_with_precondition() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #6
Source File: PkmstSteps.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@Then("^I validate the outcomes$")
public void i_validate_the_outcomes() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #7
Source File: PkmstSteps.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@When("^some other action$")
public void some_other_action() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #8
Source File: PkmstSteps.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@Then("^check more outcomes$")
public void check_more_outcomes() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #9
Source File: PkmstSteps.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@Given("^I want to write a step with name(\\d+)$")
public void i_want_to_write_a_step_with_name(int arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #10
Source File: PkmstSteps.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@When("^I check for the (\\d+) in step$")
public void i_check_for_the_in_step(int arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #11
Source File: PkmstSteps.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@Then("^I verify the success in step$")
public void i_verify_the_success_in_step() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #12
Source File: PkmstSteps.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@Then("^I verify the Fail in step$")
public void i_verify_the_Fail_in_step() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #13
Source File: RegistrationAndStoringSteps.java    From ddd-wro-warehouse with MIT License 4 votes vote down vote up
@Given("^partial box is scanned$")
public void partialBoxIsScanned() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #14
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@Given("^some other precondition$")
public void some_other_precondition() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #15
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@When("^I complete action$")
public void i_complete_action() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #16
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@When("^some other action$")
public void some_other_action() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #17
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@When("^yet another action$")
public void yet_another_action() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #18
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@Then("^I validate the outcomes$")
public void i_validate_the_outcomes() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #19
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@Then("^check more outcomes$")
public void check_more_outcomes() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #20
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@Given("^I want to write a step with name(\\d+)$")
public void i_want_to_write_a_step_with_name(int arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #21
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@When("^I check for the (\\d+) in step$")
public void i_check_for_the_in_step(int arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #22
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@Then("^I verify the success in step$")
public void i_verify_the_success_in_step() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #23
Source File: PkmstSteps.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@Then("^I verify the Fail in step$")
public void i_verify_the_Fail_in_step() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #24
Source File: PkmstSteps.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@When("^I check for the (\\d+) in step$")
public void i_check_for_the_in_step(int arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #25
Source File: InicioSesionStepDefinition.java    From screenplay-dojo with MIT License 4 votes vote down vote up
@Then("^[a-z,A-Z]{1,50} debe ver la pagina de inicio$")
public void debeVerLaPaginaDeInicio() {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #26
Source File: PkmstSteps.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Given("^I want to write a step with precondition$")
public void i_want_to_write_a_step_with_precondition() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #27
Source File: PkmstSteps.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Given("^some other precondition$")
public void some_other_precondition() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #28
Source File: PkmstSteps.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@When("^I complete action$")
public void i_complete_action() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #29
Source File: PkmstSteps.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@When("^some other action$")
public void some_other_action() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
Example #30
Source File: PkmstSteps.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@When("^yet another action$")
public void yet_another_action() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}