Professional Documents
Culture Documents
After launching test, Click on User Online IDE (available at top right corner)
package com.play.bdd.runner;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(
format = { "pretty", "html:target/cucumber" },
features = "classpath:cucumber/play.feature"
)
public class RunPlayTest {
}
package com.play.bdd.steps;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
public class PlaySteps {
@Given("^Play a learning platform$")
public void i_have_a_play() throws Throwable {
//System.out.println("This will print about play");
}
@When("^I want to learn$")
public void love_for_play() throws Throwable {
//System.out.println("This will print love for play");
}
@Then("^I open play to learn and earn$")
public void benefits_of_play() throws Throwable {
//System.out.println("This will print benefits of play");
}
}
Press I and type the below highlighted lines (intendation important and case sensitive)
Press I and type the below highlighted lines (intendation important and case sensitive)
Press I and type the below highlighted lines (intendation important and case sensitive)
package nl.tudelft.cucumber;
import java.io.Closeable;
return a + b;
@Override
}
Then press ESC, then type :wq and press Enter
Press I and type the below highlighted lines (intendation important and case sensitive)
package nl.tudelft.cucumber;
import java.io.Closeable;
return a * b;
@Override
}
Then press ESC, then type :wq and press Enter
Random Skills
Press I and type the below highlighted lines (intendation important and case sensitive)
I am loving it.
package nl.tudelft.cucumber;
import java.io.Closeable;
return a + b;
@Override
Press I and type the below highlighted lines (intendation important and case sensitive)
| Rohan | 320 | 88 |
package nl.tudelft.cucumber;
import java.io.Closeable;
return a + b;
@Override