Framework for teaching the basics of low-code automation on projects of the Czechitas Digital Testing Academy.
In its default state, after launching, the framework should start a web browser you have installed, without the need to download additional drivers. The assumption is that the user has one of the following web browsers installed: Firefox, Chrome, or Edge.
A sample test in the ExampleTest
class will open a web browser and verify that the address www.czechitas.cz is present in the contacts section of the testing application.
Working with the framework is divided according to elements of the testing application as follows:
ApplicationAction - Allows you to work with application list:
clickCreateNewApplicationButton()
- click on create new application buttonselectProgrammingSection()
- select Programming course categoryclickCreatePythonApplicationButton()
- create a new application once programming category is selectedopenFirstApplicationDetailsPage()
- open an existing application to see detailssearch("Jan")
- search for an application from JanclickEditFirstApplicationButton()
- open the first application to edit details
ApplicationDetail - Allows you to work with application details page:
selectTerm(String term)
- select a terminsertStudentFirstName("Jan")
- insert student first nameinsertStudentLastName("Novak")
- insert student last nameinsertBirthdate("01.01.2000")
- insert student day of birthinsertNote("my personal note")
- insert a noteselectCashPaymentMethod()
- choose cash payment methodselectBankTrasnferPaymentMethod()
- choose bank transfer payment methodclickAcceptTermsCheckbox()
- accept Terms and ConditionsclickEditApplicationButton()
- save changes upon editing an applicationclickCreateApplicationButton()
- click the button to create an application once all the details are provided
InternalMenuAction - Allows you to work with internal menu upon logging in:
goToOrdersSection()
- go to Objednavky sectiongoToTermsSection()
- go to Terminy sectiongoToApplicationsSection()
- go to Prihlasky sectiongoToCategoriesSection()
- go to Kategorie sectiongoToNewsSection()
- go to Aktuality sectiongoToExportsSection()
- go to Exporty section
LoginAction - allows you to login and logout:
clickLoginMenuLink()
- click login link in top menu (top right corner)insertEmail("[email protected]")
- insert emailinsertPassword("mySecurePass123")
- insert passwordclickLoginButton()
- click login button once credentials are providedlogout()
- logout
ProfileAction - allows you to work with customer profile:
goToProfilePage()
- open profile page from top menuinsertPassword("new password")
- enter a new password. Change "new password" to the one you like based on security requirements (lowercase and uppercase letters, numbers, etc)insertPasswordVerification("new password")
- enter a password to confirmclickChangeButton()
- click the button to save changes
PublicMenuAction - allows you to work with top level menu in page header:
goToContactsSection()
- go to Kontakt sectiongoToHomePage()
- go to Domu pagegoToInstructionsAndFormsForTeacherSection()
- go to Navody a Formulare pro ucitelegoToKindergartenAndSchoolSection()
- go to Objednávka pro MŠ/ZŠgoToInstructionsAndFormsForParentSection()
- go to Navody a Formulare pro rodicegoToCreateApplicationSection()
- create an application from top header menu (Pro rodice -> Vytvorit prihlasku)
Application list - verification steps you can do on the list view
checkColumnExists("Akce")
- check if Akce column is visible on the page
checkApplicationsTableIsEmpty()
- ensure the application list is empty (Žádné záznamy nenalezeny message is displayed)
checkNumberOfApplications(5)
- ensure the application list has exactly 5 applications
Application detail view - verification steps you can do on the detail view
checkPaymentMethod("Bankovní převod")
- ensure the application is paid through a bank transfer
checkFirstName("Jan")
- check that the student first name is Jan
checkLastName("Novak")
- check that the student first name is Novak
checkDateOfBirth("01.01.2010")
- check that the student date of birth is 01.01.2010
checkNote("myPrivateNote")
- check that the note is myPrivateNote
checkRemainingAmountToPay("100.00")
- check that remaining amount to pay is 100.00 Kč
checkTerm("05.02. - 09.02.2024")
- check that the term is 05.02. - 09.02.2024
checkMessageContainsStudentLastName("Novak")
- ensure that Zpráva pro příjemce contains student last name Novak