Commit 12162594 authored by Shyam's avatar Shyam

Student Admission Report completed

parent b0798c43
<?xml version="1.0" encoding="UTF-8"?>
<DataFileEntity>
<description></description>
<name>Student Admission Report</name>
<tag></tag>
<containsHeaders>true</containsHeaders>
<csvSeperator></csvSeperator>
<dataFileGUID>3cead81a-dbf8-4ae4-980d-dc2140dba37e</dataFileGUID>
<dataSourceUrl>Data Files/Student_Management_Data/Student_Management_Data_Excel.xlsx</dataSourceUrl>
<driver>ExcelFile</driver>
<isInternalPath>true</isInternalPath>
<query></query>
<secureUserAccount>false</secureUserAccount>
<sheetName>Student Admission Report</sheetName>
<usingGlobalDBSetting>false</usingGlobalDBSetting>
</DataFileEntity>
No preview for this file type
<?xml version="1.0" encoding="UTF-8"?>
<FolderEntity>
<description></description>
<name>StudentAdmission Report</name>
<tag></tag>
<folderType>WEBELEMENT</folderType>
</FolderEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>btn_StudentAdmissionReport_GetReport</name>
<tag></tag>
<elementGuidId>90b1f60b-2929-4a4a-9a53-6cd3389f2322</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='getReports']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>input_StudentAdmissionReport_Campus</name>
<tag></tag>
<elementGuidId>b961e94a-56d6-4f0e-8827-c70d3c591485</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='s2id_autogen2']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>input_StudentAdmissionReport_Course</name>
<tag></tag>
<elementGuidId>0e1f9a7e-c97d-4f1d-9d91-80e7db4c8ecb</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='s2id_autogen3']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>input_StudentAdmissionReport_Enddate</name>
<tag></tag>
<elementGuidId>6b477a7c-3dd3-4b37-bff5-1a270ba471e0</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value></value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='end_dt']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>input_StudentAdmissionReport_Organization</name>
<tag></tag>
<elementGuidId>30a8044a-bbf4-4d7c-a0e5-64bb52ee7582</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='s2id_autogen1']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>input_StudentAdmissionReport_Section</name>
<tag></tag>
<elementGuidId>65011874-e59d-4329-9c28-252b13994322</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='s2id_autogen5']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>input_StudentAdmissionReport_StartDate</name>
<tag></tag>
<elementGuidId>c8a8da90-adfe-451a-af28-11a3274ddc01</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value></value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='strt_dt']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>input_StudentAdmissionReport_Year</name>
<tag></tag>
<elementGuidId>9af7fbed-c31c-4b17-a494-d4419521ec4c</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//input[@id='s2id_autogen4']</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>list_StudentAdmissionReport_Campus</name>
<tag></tag>
<elementGuidId>f26b06ed-03c4-431f-ba54-5331e4e5c250</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>.//*[@id='select2-drop']/ul/li[1]/div</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>list_StudentAdmissionReport_Course</name>
<tag></tag>
<elementGuidId>4c95b91f-95b8-4359-b2c7-3da82ec41f71</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value>.//*[@id='select2-drop']/ul/li</value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>.//*[@id='select2-drop']/ul/li</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>list_StudentAdmissionReport_Organization</name>
<tag></tag>
<elementGuidId>82a9da41-bfb1-4a55-9397-f991b7db6ad4</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>.//*[@id='select2-drop']/ul/li/div</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>list_StudentAdmissionReport_Section</name>
<tag></tag>
<elementGuidId>e1d80e86-9646-41c3-ac68-3f0311b117fb</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value>.//*[@id='select2-drop']/ul/li</value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>.//*[@id='select2-drop']/ul/li</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>list_StudentAdmissionReport_Year</name>
<tag></tag>
<elementGuidId>efffc96d-dc98-4791-b09c-d5a26033dfe7</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value>.//*[@id='select2-drop']/ul/li</value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>.//*[@id='select2-drop']/ul/li</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>sidebar_StudentAdmissionReport</name>
<tag></tag>
<elementGuidId>5c3182da-981c-4954-82ac-8c0f89a2a1f6</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value>//a[contains(.,'Student Admission Report')]</value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//a[contains(.,'Student Admission Report')]</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>text_Generated_StudentAdmissionReport</name>
<tag></tag>
<elementGuidId>589e0c90-1c30-4ed7-86ad-2a9c909f94de</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value>//h3[contains(.,'Student Admission Report')]</value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//h3[contains(.,'Student Admission Report')]</value>
</webElementProperties>
</WebElementEntity>
<?xml version="1.0" encoding="UTF-8"?>
<WebElementEntity>
<description></description>
<name>text_StudentAdmissionReport</name>
<tag></tag>
<elementGuidId>72b3a9f8-b92c-436f-8ce0-8907b9402adc</elementGuidId>
<selectorCollection>
<entry>
<key>BASIC</key>
<value>//h3[contains(.,'Student Admission Report')]</value>
</entry>
</selectorCollection>
<selectorMethod>BASIC</selectorMethod>
<useRalativeImagePath>false</useRalativeImagePath>
<webElementProperties>
<isSelected>true</isSelected>
<matchCondition>equals</matchCondition>
<name>xpath</name>
<type>Main</type>
<value>//h3[contains(.,'Student Admission Report')]</value>
</webElementProperties>
</WebElementEntity>
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 com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
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.testcase.TestCaseFactory as TestCaseFactory
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable
'Test Data : gniadmin/accounts@gni'
WebUI.callTestCase(findTestCase('Login/Login with Admin'), [:], FailureHandling.STOP_ON_FAILURE)
WebUI.waitForElementClickable(findTestObject('Home_Page/tab_Student Managment'), 30)
WebUI.click(findTestObject('Home_Page/tab_Student Managment'))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/text_Student_Dashboard'), 30)
act_StudentDashboard = WebUI.getText(findTestObject('Student Management_Page/text_Student_Dashboard'))
WebUI.verifyEqual(act_StudentDashboard, 'Student Dashboard')
WebUI.click(findTestObject('Student Management_Page/Btn_ChevronRightArrow'))
WebUI.click(findTestObject('Student Management_Page/btn_StudentReports'))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/sidebar_StudentAdmissionReport'),
30)
WebUI.click(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/sidebar_StudentAdmissionReport'))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/text_StudentAdmissionReport'),
30)
act_StudentAdmissionReport = WebUI.getText(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/text_StudentAdmissionReport'))
WebUI.verifyEqual(act_StudentAdmissionReport, 'Student Admission Report')
WebUI.setText(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/input_StudentAdmissionReport_Organization'),
findTestData('Student_Management_Data/Student Admission Report').getValue(1, 1))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Organization'),
20)
CustomKeywords.'reusableComponents.List_Element.Select_ExpectText_In_List'(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Organization'),
findTestData('Student_Management_Data/Student Admission Report').getValue(1, 1))
WebUI.delay(2)
WebUI.setText(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/input_StudentAdmissionReport_Campus'),
findTestData('Student_Management_Data/Student Admission Report').getValue(2, 1))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Campus'),
20)
CustomKeywords.'reusableComponents.List_Element.Select_ExpectText_In_List'(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Campus'),
findTestData('Student_Management_Data/Student Admission Report').getValue(2, 1))
WebUI.delay(2)
WebUI.setText(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/input_StudentAdmissionReport_Course'),
findTestData('Student_Management_Data/Student Admission Report').getValue(3, 1))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Course'),
20)
CustomKeywords.'reusableComponents.List_Element.Select_ExpectText_In_List'(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Course'),
findTestData('Student_Management_Data/Student Admission Report').getValue(3, 1))
WebUI.delay(2)
WebUI.setText(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/input_StudentAdmissionReport_Year'),
findTestData('Student_Management_Data/Student Admission Report').getValue(4, 1))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Year'),
20)
CustomKeywords.'reusableComponents.List_Element.Select_ExpectText_In_List'(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Year'),
findTestData('Student_Management_Data/Student Admission Report').getValue(4, 1))
WebUI.delay(2)
WebUI.setText(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/input_StudentAdmissionReport_Section'),
findTestData('Student_Management_Data/Student Admission Report').getValue(5, 1))
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Section'),
20)
WebUI.delay(5)
CustomKeywords.'reusableComponents.List_Element.Select_ExpectText_In_List'(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/list_StudentAdmissionReport_Section'),
findTestData('Student_Management_Data/Student Admission Report').getValue(5, 1).replace(' ', ' '))
WebUI.delay(2)
CustomKeywords.'reusableComponents.DatepickerHandler.handleDatepicker'(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/input_StudentAdmissionReport_StartDate'),
findTestData('Student_Management_Data/Student Admission Report').getValue(6, 1), findTestData('Student_Management_Data/Student Admission Report').getValue(
7, 1), findTestData('Student_Management_Data/Student Admission Report').getValue(8, 1))
CustomKeywords.'reusableComponents.DatepickerHandler.handleDatepicker'(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/input_StudentAdmissionReport_Enddate'),
findTestData('Student_Management_Data/Student Admission Report').getValue(9, 1), findTestData('Student_Management_Data/Student Admission Report').getValue(
10, 1), findTestData('Student_Management_Data/Student Admission Report').getValue(11, 1))
WebUI.click(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/btn_StudentAdmissionReport_GetReport'))
WebUI.switchToWindowIndex(1)
WebUI.waitForElementVisible(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/text_Generated_StudentAdmissionReport'),
30)
act_StudentAdmissionReport = WebUI.getText(findTestObject('Student Management_Page/Student Reports/StudentAdmission Report/text_Generated_StudentAdmissionReport'))
WebUI.verifyEqual(act_StudentAdmissionReport, 'Student Admission Report')
WebUI.delay(2)
WebUI.closeBrowser()
<?xml version="1.0" encoding="UTF-8"?>
<TestCaseEntity>
<description></description>
<name>Verify the Student Admission Report in Student Management</name>
<tag></tag>
<comment></comment>
<testCaseGuid>e7b021e5-1060-4ffc-9e7d-6ca057c9b6dd</testCaseGuid>
</TestCaseEntity>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment