Step 10: Repeat the same steps above to change the name of the object Login and its folder. Step 9: Go back to the recording browser and continue to record. Step 8: Rename the element name from "a_Make Appointment" to "button_Make Appointment." Step 7: In the Captured Objects frame, select the a_Make Appointment element. Step 6: Rename the page name from "Page_CURA Healthcare Service" to "Page_Home Page." Step 4: Once your application has been launched, click on the Make Appointment button. Select a browser and click the Record button to start recording the test case. Step 3: The Record dialog will be displayed. Step 2: Click Record Web on the main toolbar. Provide a name for your test case and click OK. Step 1: Launch Katalon Studio and click First Test Case on the main toolbar. This will help you reuse and maintain the objects. To organize your test scripts in page object pattern, you need to add test objects in the folder corresponding to the page. closeBrowser () Rename Page Folders and Elements while Recording click ( findTestObject ( 'Page_CURA Healthcare Service (2)/button_Book Appointment' )) WebUI. setText ( findTestObject ( 'Page_CURA Healthcare Service (2)/textarea_comment' ), 'Katalon' ) WebUI. click ( findTestObject ( 'Page_CURA Healthcare Service (2)/td_3' )) WebUI. click ( findTestObject ( 'Page_CURA Healthcare Service (2)/div_input-group-addon' )) WebUI. click ( findTestObject ( 'Page_CURA Healthcare Service (2)/input_programs' )) WebUI. click ( findTestObject ( 'Page_CURA Healthcare Service (2)/input_hospital_readmission' )) WebUI. selectOptionByValue ( findTestObject ( 'Page_CURA Healthcare Service (2)/select_facility' ), 'Hongkong CURA Healthcare Center', true ) WebUI. click ( findTestObject ( 'Page_CURA Healthcare Service (1)/button_Login' )) WebUI. click ( findTestObject ( 'Page_CURA Healthcare Service/a_Make Appointment' )) WebUI. Step 15: Recorded objects and actions are saved in the test case as shown below.Ĭlick Run to execute recorded test cases in your desired browser. You can also create a folder to maintain page objects in desired structure. You will be prompted to save captured objects to the Object Repository, which can be reused whenever needed. Step 14: When you are done recording, click OK to save the recorded actions into Katalon Studio. For more details about Selection Method, refer to this guide. With basic mode, Katalon Studio will automatically generate robust and unique selectors for captured objects.Īdvanced testers who want to manually input the selectors have the option to choose between CSS and XPath modes.
The Basic mode is recommended to manual testers who have just started automated testing. Katalon Studio allows users to select the Selection Method for the captured objects. Step 13: You can stop the recording anytime by clicking Stop. Step 11: Enter text in the Comment field. Step 10: Click the calendar icon next to Visit Date (Required). Step 9: Then move the cursor to click on the Medicaid checkbox. Step 8: Select the Apply for hospital readmission checkbox. Step 7: Once the Make Appointment page has been loaded, select the value Hongkong CURA Healthcare Center from the Facility drop down menu.
Step 6: Enter valid username and password (John Doe and ThisIsNotAPassword), then click Login. Step 5: Once your application has been launched, click on the Make Appointment button. Step 4: Select a browser, then click Record to start recording the test case. Step 2: Click Record Web from the main toolbar. Step 1: Launch Katalon Studio and click New > Test Case on the main toolbar.
Launch the application under test ( Example: ).Rename Page Folders and Elements while runtime recording.Record test with the Record Web function.This function supports recording and running the same tests on multiple browsers. You can quickly automate a few functionalities of your app and save time by recording actions that have to be performed many times in iterative builds.
The Web Recorder Utility function captures your actions being performed on the application and converts them into runnable code in the back-end. Identifying objects on applications is time-consuming. Test recording is the easiest way for new automation testers to start learning test automation. Creating test cases using Record & Playback