コード例 #1
0
 @When(
     "the receptionist looks up a pacient name '$name' or cpf '$cpf' or phone '$phone' or gender '$gender' or birth '$birth'")
 public void whenTheReceptionistLooksUpPacient(
     String name, String cpf, String phone, String gender, String birth) {
   endUser.search_enter_name(name);
   endUser.search_enter_cpf(cpf);
   endUser.search_enter_phone(phone);
   endUser.search_enter_gender(gender);
   endUser.search_enter_birth(birth);
   endUser.search_submit();
 }
コード例 #2
0
 @When(
     "the doctor looks up a patient name '$name' or cpf '$cpf' or phone '$phone' or gender '$gender' or birth '$birth'")
 public void whenTheDoctorLooksUpPacient(
     String name, String cpf, String phone, String gender, String birth) {
   if (name != "") endUser.search_enter_name(name);
   if (cpf != "") endUser.search_enter_cpf(cpf);
   if (phone != "") endUser.search_enter_phone(phone);
   if (gender != "") endUser.search_enter_gender(gender);
   if (birth != "") endUser.search_enter_birth(birth);
   endUser.search_submit();
 }
コード例 #3
0
 @When("the doctor looks up field '$name'")
 public void whenTheDoctorLooksUpField(String name) {
   endUser.search_enter_name(name);
   endUser.search_submit();
 }
コード例 #4
0
 @When("the user insert the symptomatic interrogation '$str'")
 public void whenTheUserInsertSymptomaticInterrogation(String str) {
   endUser.inserts_symptomatic(str);
 }
コード例 #5
0
 @When("the user insert the main complaint '$str'")
 public void whenTheUserInsertTheMainComplaint(String str) {
   endUser.inserts_main_complaint(str);
 }
コード例 #6
0
 @Given("the user is doctor")
 public void givenTheUserIsDoctor() {
   assert (endUser.is_doctor());
 }
コード例 #7
0
 @Given("the user is on the subjective data page")
 public void givenTheUserIsOnSubjectiveDataPage() {
   endUser.is_the_subjective_data_page();
   ;
 }
コード例 #8
0
 @Given("the user is on the insertion page")
 public void givenTheUserIsOnInsertionPage() {
   endUser.is_the_insertion_page();
 }
コード例 #9
0
 @Then("a error message '$message' should be sent to the user on registration page")
 public void thenAErrorMessageInsertedIsSentToTheUserOnRegistrationPage(String message) {
   endUser.should_see_error_message_registration(message);
 }
コード例 #10
0
 @When("the user insert the patient's gender '$gender'")
 public void whenTheUserInsertPatientGender(String gender) {
   endUser.inserts_patient_gender(gender);
 }
コード例 #11
0
 // Registration - when
 @When("the user insert the patient's name '$name'")
 public void whenTheUserInsertPatientName(String name) {
   endUser.inserts_patient_name(name);
 }
コード例 #12
0
 @When("the user click the register patient button")
 public void whenTheUserClickTheInsertPatientButton() {
   endUser.click_register_patient_button();
 }
コード例 #13
0
 @Given("the user is on the registration page")
 public void givenTheUserIsOnTheRegistrationPage() {
   endUser.is_on_the_registration_page();
 }
コード例 #14
0
 @Then("they should see a list of patients that met that criteria")
 public void thenTheyShouldSeeListPacientsMetCriteria() {
   endUser.shoud_see_list_pacients_met_criteria();
 }
コード例 #15
0
 @Then("a success message '$message' should be sent to the user on registration page")
 public void thenASuccessMessageInsertedIsSentToTheUserOnRegistrationPage(String message) {
   endUser.should_see_success_message_registration(message);
 }
コード例 #16
0
 @When("the user insert the patient's cpf '$cpf'")
 public void whenTheUserInsertPatientCPF(String cpf) {
   endUser.inserts_patient_cpf(cpf);
 }
コード例 #17
0
 @Then("a success message '$message' should be sent to the user on subjective data page")
 public void thenASuccessMessageInsertedIsSentToTheUserOnSubjectiveDataPage(String message) {
   endUser.should_see_success_message_subjective_data(message);
 }
コード例 #18
0
 @When("the user insert the patient's birth date '$birth'")
 public void whenTheUserInsertPatientBirth(String birth) {
   endUser.inserts_patient_birth(birth);
 }
コード例 #19
0
 @Then("a error message '$message' should be sent to the user on search page")
 public void thenAErrorMessageInsertedIsSentToTheUserOnSearchPage(String message) {
   endUser.should_see_error_message_search(message);
 }
コード例 #20
0
 @When("the user insert the patient's health insurance plan '$plan'")
 public void whenTheUserInsertHealthInsurancePlan(String plan) {
   endUser.inserts_patient_plan(plan);
 }
コード例 #21
0
 @Given("the user is on the search page")
 public void givenTheUserIsOnSearchPage() {
   endUser.is_the_search_page();
   ;
 }
コード例 #22
0
 @When("the user insert the patient's phone '$phone'")
 public void whenTheUserInsertPatientPhone(String phone) {
   endUser.inserts_patient_phone("192222222");
 }
コード例 #23
0
 @Given("the user is receptionist")
 public void givenTheUserIsReceptionist() {
   assert (endUser.is_receptionist());
 }
コード例 #24
0
 @When("the user confirm the submission")
 public void whenTheUserConfirmSubmission() {
   endUser.confirm_patient_registration();
 }
コード例 #25
0
 @Given("the user is receptionist or doctor")
 public void givenTheUserIsReceptionistOrDoctor() {
   assert (endUser.is_receptionist() || endUser.is_doctor());
 }
コード例 #26
0
 @When("the user click on \"Register a patient")
 public void whenTheUserClickOnRegisterPatient() {
   endUser.click_register_patient();
 }
コード例 #27
0
 @When("the user insert the history of present illness '$str'")
 public void whenTheUserInsertHistoryIllness(String str) {
   endUser.inserts_history_illness(str);
 }
コード例 #28
0
 @Given("the user is on buscar paciente page")
 public void givenTheUserIsOnBuscarPacientePage() {
   // endUser.is_the_buscar_paciente_page();
   endUser.is_the_patient_page();
 }
コード例 #29
0
 @When("the user insert the personal and family history '$str'")
 public void whenTheUserInsertPersonalFamilyHistory(String str) {
   endUser.inserts_personal_family_history(str);
 }
コード例 #30
0
 @When("the doctor looks up a patient name '$name'")
 public void whenTheDoctorLooksUpPacientName(String name) {
   endUser.search_enter_name(name);
   endUser.search_submit();
 }