practical14
practical14
Experiment No: 14
Title of Design test cases using an automation tool
Experiment
1. Enlist the different factors which are determining the effectiveness of Automation
testing.
7. Use soft assertions if you need to make a list of related checks on the same web
page
Log :
Script Output :
{
"id": "6275c209-16e0-4d19-984e-3bcefef53d08",
"version": "2.0",
"name": "mycollege",
"url": "https://erp.mycollege.edu.in/landingpage.ashx",
"tests": [{
"id": "8426977d-56b0-4b15-a27d-0ef52fda648c",
"name": "login",
"commands": [{
"id": "ef25f0c3-7c71-4916-b19e-31a76bc96cfa",
"comment": "",
"command": "open",
"target": "https://erp.mycollege.edu.in/landingpage.ashx",
"targets": [],
"value": ""
}, {
"id": "95c52998-02fa-47c3-8223-91a58b14cb49",
"comment": "",
"command": "setWindowSize",
"target": "854x700",
"targets": [],
"value": ""
}, {
"id": "be185075-a6ab-4a74-bf2b-197b58362773",
"comment": "",
"command": "click",
"target": "id=TRG_27",
"targets": [
["id=TRG_27", "id"],
["css=#TRG_27", "css:finder"],
["xpath=//input[@id='TRG_27']", "xpath:attributes"],
["xpath=//div[@id='VWG_27']/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "c040d357-8fc3-4f77-8a6e-631c3be467d8",
"comment": "",
"command": "type",
"target": "id=TRG_27",
"targets": [
["id=TRG_27", "id"],
["css=#TRG_27", "css:finder"],
["xpath=//input[@id='TRG_27']", "xpath:attributes"],
["xpath=//div[@id='VWG_27']/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "73acb3e6-2aed-4dc7-b907-729f03f1b068",
"comment": "",
"command": "click",
"target": "id=TRG_26",
"targets": [
["id=TRG_26", "id"],
["css=#TRG_26", "css:finder"],
["xpath=//input[@id='TRG_26']", "xpath:attributes"],
["xpath=//div[@id='VWG_26']/input", "xpath:idRelative"],
["xpath=//div[6]/div/input", "xpath:position"]
],
"value": ""
}, {
"id": "66fd0fe6-84a5-4a2b-80b6-f3e6cea79638",
"comment": "",
"command": "type",
"target": "id=TRG_27",
"targets": [
["id=TRG_27", "id"],
["css=#TRG_27", "css:finder"],
["xpath=//input[@id='TRG_27']", "xpath:attributes"],
["xpath=//div[@id='VWG_27']/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": "Shivteli123Vp*"
}, {
"id": "4899c591-dbe4-47d4-95fc-2a6cb1a08c5e",
"comment": "",
"command": "click",
"target": "css=.cb20 > .cb52 td",
"targets": [
["css=.cb20 > .cb52 td", "css:finder"],
["xpath=//div[@id='VWG_25']/div/div/div/table/tbody/tr/td",
"xpath:idRelative"],
["xpath=//td", "xpath:position"],
["xpath=//td[contains(.,'Sign in')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "7f215eea-258d-4934-a182-7ceb4df51af4",
"comment": "",
"command": "close",
"target": "",
"targets": [],
"value": ""
}]
}],
"suites": [{
"id": "8ebb64f8-34e7-4a0f-9e8a-b6ea8d535b2a",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["8426977d-56b0-4b15-a27d-0ef52fda648c"]
}],
"urls": ["https://erp.mycollege.edu.in/landingpage.ashx"],
"plugins": []
}
["xpath=//div[3]/div/div/div/div/div/div/div/div/div/div/div/div/table/tbody/tr/td
/span", "xpath:position"],
["xpath=//span[contains(.,'Ok')]", "xpath:innerText"]
],
"value": ""
}]
}],
"suites": [{
"id": "b44af6a2-460e-448f-a826-b49511db5c93",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["a3997c8a-be01-4c50-91e8-2e441b74f8e8"]
}],
"urls": ["https://erp.mycollege.edu.in/"],
"plugins": []
}
`
``
Script :
{
"id": "dba46e92-b4a4-4380-bfe4-5069d8d8ec8b",
"version": "2.0",
"name": "myproject_vp",
"url": "https://vpt.edu.in/",
"tests": [{
"id": "11f77e52-3fcf-48d9-a52a-a87b396bd3bc",
"name": "test1",
"commands": [{
"id": "f29694bb-1878-43d2-9147-dd6f9f9ece19",
"comment": "",
"command": "open",
"target": "https://vpt.edu.in/",
"targets": [],
"value": ""
}, {
"id": "5fb5503c-3674-4387-9afb-71e44db128be",
"comment": "",
"command": "setWindowSize",
"target": "894x824",
"targets": [],
"value": ""
}, {
"id": "636fba9f-3f28-4ff9-aa93-b35e1f6a8c29",
"comment": "",
"command": "mouseOver",
"target": "css=.logo_vit .img-fluid",
"targets": [
["css=.logo_vit .img-fluid", "css:finder"],
["xpath=//img[@alt='vidyalankar-polytechnic-diploma-logo']",
"xpath:img"],
["xpath=//img", "xpath:position"]
],
"value": ""
}, {
"id": "0b3bbc5b-5941-42d7-becb-df5e4b621719",
"comment": "",
"command": "click",
"target": "css=.navbar-toggler-icon",
"targets": [
["css=.navbar-toggler-icon", "css:finder"],
["xpath=//button/span", "xpath:position"]
],
"value": ""
}, {
"id": "73912287-c95c-41b6-ab7a-bd7e00641935",
"comment": "",
"command": "click",
"target": "linkText=Academics",
"targets": [
["linkText=Academics", "linkText"],
["css=.navbar-nav > .nav-item:nth-child(4) > .nav-link", "css:finder"],
["xpath=//a[contains(text(),'Academics')]", "xpath:link"],
["xpath=//div[@id='navbar-list-2']/ul/li[3]/a", "xpath:idRelative"],
["xpath=//a[contains(@href,
'https://vpt.edu.in/diploma/polytechnic/academic.html')]", "xpath:href"],
["xpath=//nav/div/div/ul/li[3]/a", "xpath:position"],
["xpath=//a[contains(.,'Academics')]", "xpath:innerText"]
],
"value": ""
}]
}],
"suites": [{
"id": "ffc7c34a-4c20-4e7d-aea5-b21c7622375a",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["11f77e52-3fcf-48d9-a52a-a87b396bd3bc"]
}],
"urls": ["https://vpt.edu.in/"],
"plugins": []
}
Grade and Process Related Product Related Dated Sign
Dated (35) (15)
Signature of
Teacher