0% found this document useful (0 votes)
3 views

practical14

The document outlines an experiment on designing test cases using automation tools, specifically comparing tools like Katalon, Selenium, TestComplete, and UFT. It discusses the advantages and disadvantages of automation testing, factors determining its effectiveness, and good coding practices. Additionally, it includes practical examples of automation testing for a college login system and academic tab testing on a website.

Uploaded by

shivamteli63
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

practical14

The document outlines an experiment on designing test cases using automation tools, specifically comparing tools like Katalon, Selenium, TestComplete, and UFT. It discusses the advantages and disadvantages of automation testing, factors determining its effectiveness, and good coding practices. Additionally, it includes practical examples of automation testing for a college login system and academic tab testing on a website.

Uploaded by

shivamteli63
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

DEPARTMENT OF COMPUTER ENGINEERING

Subject: Software Testing Subject Code: 22518


Semester:5th Semester Course: Computer Engineering
Laboratory No: V119 Name of Subject Teacher: Prof.
Supriya Angne
Name of Student: Shivam Teli Roll Id: 22203A0008

Experiment No: 14
Title of Design test cases using an automation tool
Experiment

 Practical related questions :

1. Compare any two software testing tools used in automation testing.


Ans :
Features Katalon Selenium TestComplete UFT (ǪTP)
Studio
Test Crossplatform Crossplatform Windows Windows
development
platform
Application Web and Web apps Windows Windows
under test mobile apps desktop, web, desktop, web,
mobile apps mobile apps
Scripting Java/Groovy Java, C#, JavaScript, VBScript
languages Perl, Python, Python,
JavaScript, VBScript,
Ruby, PHP JScript, Delphi,
C++, and C#
Programming Not required. Advanced Not required. Not required.
skills Recommended skills needed Recommended Recommended
for advanced to integrate for advanced for advanced
test scripts various tools test scripts test scripts
Learning Medium High Medium Medium
curves
Ease of Easy to set up Require Easy to setup Easy to setup
installation and run installing and and run and run
and use integrating
various tools
Script Ǫuick Slow Ǫuick Ǫuick
creation time

2. List some advantages and disadvantages of automation testing.


Ans :
Advantages of Automated Testing:
1. Automated testing improves the coverage of testing as automated
execution of test cases is faster than manual execution.
2. Automated testing reduces the dependability of testing on the availability of
the test engineers.
3. Automated testing provides round the clock coverage as automated tests
can be run all time in 24*7 environment.
4. Automated testing takes far less resources in execution as compared to
manual testing.
5. It helps to train the test engineers to increase their knowledge by producing
a repository of different tests.

Disadvantages of Automated Testing:


1. Automated testing is very much expensive than the manual testing.
2. It also becomes inconvenient and burdensome as to decide who would automate
and who would train.
3. It has limited to some organisations as many organisations not prefer test
automation.
Automated testing would also require additionally trained and skilled people.

1. Enlist the different factors which are determining the effectiveness of Automation
testing.

3. Enlist the different factors which are determining the effectiveness of


automation testing.
Ans :
1. Build a dedicated team
Test automation is a dedicated and focused activity to consider, and cannot be mixed.
So, it is important to bring a dedicated team on board for the same.
2. Selecting the tool
It is important to select a tool that is compatible with the organization and the people
who would be involved in the process.
3. Finding the right tool is just the beginning
The tool cannot be implemented everywhere, as it might not cover every scenario.
But if blended with the right strategy and skill sets, the tool will provide the expected
results.
4. Blend every aspect together for desired results
It is advisable to begin the automation process by creating the test case in a manual
format - collect all the requirements and testing data to build the automation plan.
5. Know your software/application
This will help implement the tool effectively and enable the right thirdparty
integrations. This will ensure effective automation even in the future. Moreover, it
will help identify any possible defects, memory leaks, performance issues, scalability
issues, and more.

Automation cannot be done for everything


You will have to loop in and recruit the right processes that can meet the desired goals.
4. State some good coding practices while automation.
Ans :
1. Always use test design patterns and principles

2. Never use Thread.sleep() unless there are specific test requirements

3. Do not run ALL tests across ALL target browsers

4. Separate your tests from your test automation framework

5. Make your test automation framework portable

6. Name your tests wisely

7. Use soft assertions if you need to make a list of related checks on the same web
page

8. Take screenshots for failure investigation

9. Make tests simpler instead of adding comments

10. Follow the “green tests run” policy

11. Use data-driven instead of repeated tests

12. All tests should be independent

13. Setup detailed automation tests reporting

 Automation testing for Mycollege Login using selenium IDE:

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": []
}

 Invalid Login test case of MIS Login :


Log :
Script output :
{
"id": "8463ccc1-44e9-4027-b2ce-73bf25f7ffd6",
"version": "2.0",
"name": "Drmo",
"url": "https://erp.mycollege.edu.in",
"tests": [{
"id": "a3997c8a-be01-4c50-91e8-2e441b74f8e8",
"name": "login",
"commands": [{
"id": "f91862db-6127-44ed-93b8-6faac4946449",
"comment": "",
"command": "open",
"target": "/landingpage.ashx",
"targets": [],
"value": ""
}, {
"id": "830ed2c1-e396-4d2b-b0d9-7d1752aa8327",
"comment": "",
"command": "setWindowSize",
"target": "794x816",
"targets": [],
"value": ""
}, {
"id": "fa6cd734-1feb-46ee-97a6-40f2567454a0",
"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": "cd6316ab-34a7-49d3-b2f0-22bcf7a68957",
"comment": "",
"command": "type",
"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": "shivam.teli"
}, {
"id": "0c56f3ba-89d8-4a99-8b29-01bc80302264",
"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": "7d96a44c-c225-48fc-8868-a0d486ba4e0b",
"comment": "",
"command": "click",
"target": "css=.ct11",
"targets": [
["css=.ct11", "css:finder"],
["xpath=//div[@id='VWG_25']/div/div/div/table/tbody/tr/td/span",
"xpath:idRelative"],
["xpath=//td/span", "xpath:position"],
["xpath=//span[contains(.,'Sign in')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "91d32327-ab46-46b6-b54c-2ae53b9018a8",
"comment": "",
"command": "click",
"target": "css=.ct11 .ct11",
"targets": [
["css=.ct11 .ct11", "css:finder"],
["xpath=//div[@id='VWG_40']/div/div/div/table/tbody/tr/td/span",
"xpath:idRelative"],

["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": []
}

 Testing of Academic tab of vpt.edu.in :


Log :

`
``

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

You might also like