Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Practical No.13

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

 Practical No.

13

XIII (2)

 Test the procedure of opening and closing WordPad Application using


automation tool and attach the screenshots.

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint


import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

Windows.startApplicationWithTitle('C:\\Program Files (x86)\\Microsoft


Office\\Office14\\WINWORD.EXE', '')

Windows.closeApplication()
XIII. (3)

 Test basic “login” functionality for any application using automated tool.
Write down the related test cases or attached the screen shots.

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint


import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.openBrowser('')

WebUI.openBrowser('')

WebUI.openBrowser('')

WebUI.navigateToUrl('https://in.linkedin.com/')

WebUI.switchToWindowTitle('LinkedIn India: Log In or Sign Up')

WebUI.setText(findTestObject('Object Repository/Page_LinkedIn India Log In or Sign


Up/input_Welcome to your professional communit_5376aa'),
'kulneha93@gmail.com')

WebUI.setEncryptedText(findTestObject('Object Repository/Page_LinkedIn India Log In or Sign


Up/input_Email or phone number_session_password'),
'6s4wscY5YVmwlbAkcEo5VQ==')

WebUI.click(findTestObject('Object Repository/Page_LinkedIn India Log In or Sign


Up/button_Show'))
WebUI.click(findTestObject('Object Repository/Page_LinkedIn India Log In or Sign
Up/button_Hide'))

WebUI.click(findTestObject('Object Repository/Page_LinkedIn India Log In or Sign


Up/button_Sign in'))

WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/button_Sign in'))

WebUI.setEncryptedText(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/input_Couldnt find a LinkedIn account assoc_7eef4c'),
'6s4wscY5YVmwlbAkcEo5VQ==')

WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/span_show'))

WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/span_hide'))

WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/button_Sign in'))

WebUI.setText(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/input_Sign in_session_key'), '9552810766')

WebUI.setEncryptedText(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/input_Couldnt find a LinkedIn account assoc_7eef4c'),
'6s4wscY5YVmwlbAkcEo5VQ==')

WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/button_Sign in'))

WebUI.setText(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/input_Sign in_session_key'), '+919552810766')

WebUI.setEncryptedText(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/input_Couldnt find a LinkedIn account assoc_7eef4c'),
'6s4wscY5YVmwlbAkcEo5VQ==')

WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/span_show'))

WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in


LinkedIn/span_hide'))
WebUI.click(findTestObject('Object Repository/Page_LinkedIn Login, Sign in
LinkedIn/button_Sign in'))

 Test Cases
XIII (1)

 Test the “View” option available in WordPad applications. Attached the


recorded script.

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint


import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

Windows.startApplicationWithTitle('C:\\Program Files (x86)\\Microsoft


Office\\Office14\\WINWORD.EXE', '')

You might also like