Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bms assignment yatharth #55

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Comments removed
  • Loading branch information
Yatharth Pandya authored and Yatharth Pandya committed Jun 20, 2023
commit dd014360bf738282c25d1ed2909769780c826be9
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,27 @@
public class BMSSteps {
private static final Logger LOGGER = Logger.getLogger(BMSSteps.class.getName());
private final TestExecutionContext context;

public BMSSteps() {
context = SessionContext.getTestExecutionContext(Thread.currentThread().getId());
LOGGER.info("context: " + context.getTestName());
}

@Given("I, a guest user from {string} wants to see movie which is positioned at {string} on day after tomorrow")
public void iAGuestUserFromWantsToSeeMovieWhichIsPositionedAtOnDayAfterTomorrow(String location, String moviePosition) {
LOGGER.info(System.out.printf("iAGuestUserSearchForMovies - Persona:'%s', Platform: '%s'",SAMPLE_TEST_CONTEXT.ME, Runner.getPlatform()));
Drivers.createDriverFor(SAMPLE_TEST_CONTEXT.ME, Runner.getPlatform(), context);

//new IndigoGiftVoucherBL(SAMPLE_TEST_CONTEXT.ME, Runner.platform).personaliseAndPreviewVoucherWithAmount(voucherDenomination,quantity);
new BMSHomeBL(SAMPLE_TEST_CONTEXT.ME, Runner.getPlatform()).loginAsGuestUserForGivenLocation(location).selectMovieCategory();
new BMSMoviesBL().selectMovie(moviePosition).selectDateAfter2Days();
}

@When("I select seats for {string} for the second last time slot in cinema hall present at position {string}")
public void iSelectSeatsForForTheSecondLastTimeSlotInCinemaHallPresentAtPosition(String noOfSeats, String cinemaPosition) {
new BMSMoviesBL().selectSecondLastTimeSlotForCinemaHallAtPosition(cinemaPosition).selectNoOfSeats(noOfSeats);

}

@Then("I check for availability of seats that should be more than {string} percent")
public void iCheckForAvailabilityOfSeatsThatShouldBeMoreThanPercent(String validationPercentage) {
new BMSSelectSeatsBL().validateAvailableSeatsPercentage(validationPercentage);
Expand Down