You are on page 1of 9

PROGRAM : COMPUTER ENGINEERING

Course: Software Testing Course Code: 22518


Semester: V Class: CO5IB
Laboratory No: V119 Name of Subject Teacher: Supriya Kadam
Name of Student: Nimish Utekar Roll ID: 21203B0039

Experiment No 14
Title of Experiment Design and Run test cases for MS Word
application using an automated tool

LOG OF AMAZON AND WORD USING AUTOMATED TOOL (SELENIUM)

Running 'search product'


08:40:38
1.
open on / OK
08:40:38
2.
setWindowSize on 697x720 OK
08:40:38
3.
click on id=twotabsearchtextbox OK
08:40:38
4.
mouseOver on id=nav-search-submit-button OK
08:40:39
5.
type on id=twotabsearchtextbox with value laptop OK
08:40:39
6.
click on id=nav-search-submit-button OK
08:40:39
'search product' completed successfully
Running '4747474'
08:58:40
1.
open on https://outlook.office365.com/mail/ OK
08:58:40
2.
setWindowSize on 1382x736 OK
08:58:40
3.
click on css=.ms-Icon--WaffleOffice365 OK
08:58:40
4.
mouseOver on css=.fo0AQaHGTpzOGxJevVebEQ\=\= > .o365cs-base OK
08:58:43
5.
mouseOut on css=.fo0AQaHGTpzOGxJevVebEQ\=\= > .o365cs-base OK
08:58:44
6.
mouseOver on css=#O365_AppTile_Mail > .XccFFCd8hVK9T83NMuheeA\=\=
OK
08:58:45
7.
mouseOut on css=#O365_AppTile_Mail > .XccFFCd8hVK9T83NMuheeA\=\= OK
08:58:46
8.
click on css=#O365_AppTile_WordOnline > .XccFFCd8hVK9T83NMuheeA\=\=
OK
08:58:47
9.
selectWindow on handle=${win4564} OK
08:58:48
'4747474' completed successfully

Practical Related Questions


1. Compare any two software testing tools used in automation testing.
2. List some advantages and disadvantages of Automation testing.
Answer:
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.
4. Automated testing would also require additionally trained and skilled
people.
5. Automated testing only removes the mechanical execution of testing
process, but creation of test cases still required testing professionals.
3. Enlist the different factors which are determining the effectiveness of
Automation testing.
Answer:
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.
6. 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.
Answer: `
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

You might also like