Tutorial On Web Testing with Katalon Studio

  1. Web testing
  2. Mobile testing for Android and iOS
  3. API testing
  4. Desktop app testing
  5. Data-driven testing
  6. BDD testing

Web Testing with Katalon Studio

Step 1: Set up a project

Step 2: Create the first test case

WebDriver driver = new ChromeDriver();String baseUrl = "https://www.katalon.com/";driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);driver.get("https://katalon-demo-curas.herokuapp.com");driver.findElement(By.id("btn-appointment")).click();driver.findElement(By.id("txt-username")).clear();driver.findElement(By.id("txt-username")).sendKeys("Diksha");driver.findElement(By.id("txt-password")).clear();driver.findElement(By.id("txt-password")).sendKeys("NotAPassword");driver.findElement(By.id("btn-login")).click();driver.quit();
WebUI.openBrowser('https://katalon-demo.com/')WebUI.click(findTestObject('PageCURA Bodycare Service/a_Make Appointment'))WebUI.setText(findTestObject('PageCURA Bodycare Service/input_Username_username'), 'John Doe'WebUI.setEncryptedText(findTestObject('Page_CURA Bodycare Service/input_Password_password'), 'g3/DOGG74jC3Flrr3yH+3D/yKbOqqUNM')WebUI.click(findTestObject('Page_CURA Bodycare Services/button_Login'))

Step 3. Verification in the test case

WebUI.verifyElementText(findTestObject('Object Repository/Page_CURA Bodycare Service/h2_Make Appointment'), 
'Make Appointment', FailureHandling.STOP_ON_FAILURE)

Step 6: Execute test suites and view the result

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store