Study And Analysis Of Automation Testing Techniques

1y ago
35 Views
2 Downloads
690.01 KB
8 Pages
Last View : 23d ago
Last Download : 3m ago
Upload by : Jamie Paz
Transcription

Volume 3, No. 12, December 2012Journal of Global Research in Computer ScienceRESEARCH PAPERAvailable Online at www.jgrcs.infoSTUDY AND ANALYSIS OF AUTOMATION TESTING TECHNIQUESVishawjyoti*and Sachin SharmaDeptt of Computer Applications, Manav Rachna International : Testing is a very important activity in Software Development Process. It is to examine & modify source code. Effective Testingproduces high quality software. This Paper deals with a significant and vital issue of Software Testing. Testing can be conducted manually aswell as Automated. These Techniques have their own advantages & disadvantages. The Objective of this paper is to perform Automation Testingusing Software Testing Tool “Selenium”. With this web testing tool, test cases are automatically recorded in background while tester is enteringthe data in a web application screen.Keywords: Software Testing, Manual Testing, Automation testing, Selenium.INTRODUCTIONThe ultimate goal of software development is to producehigh quality software. Superior quality software hascharacteristics like low cost, reliable and user satisfactory.Testing is the process of executing a program with theintention of finding errors. This is a crucial & essentialactivity to discover all the errors early software developmentprocess. Emphatic & fruitful testing reduces the system cost.Software development houses recruit testing & qualityassurance personnel for performing testing activity.Test means program’s response to ever possible input. Aprogram should test for every valid & invalid input. Testingactivity can be conducted in to two ways: Manual testing &automation testing. Any type of software testing type can beexecuted both manually as well using an automation tool.Manual testing[5] is in which the testing activity isperformed by testing persons. Manual testing requires atester to perform manual test operations on the test softwarewithout the help of Test automation. Manual Testing is aprocess where in a tester often follows a written test planthat leads them through a set of important test cases. A testcase in software testing is a set of conditions written forparticular applications & tester run all these conditions toensure the correct functionality of the software applications.Manual testing is a laborious activity that requires the testerto possess a certain set of qualities; to be patient, observant,speculative, creative, innovative, open-minded, resourceful,opinionated, and skilful. In order to fully test that all therequirements of an application are met, there must be at leasttwo test cases for each requirement: one positive test andone negative test. Manual testing helps discover defectsrelated to the usability testing and GUI testing area. Anynew application must be manually tested before its testingcan be automated. Manual testing requires more effort, butis necessary to check automation feasibility. Manual testingdoes not require the knowledge of any testing tool.Automation Testing [6] is running test cases where manualintervention is not required to run each one. It uses special JGRCS 2010, All Rights Reservedsoftware to write & execute test cases to compare the actualoutcome with the predicted outcome. Once tests have beenautomated, they can be run quickly and repeatedly.Automated software testing is the best way to increase theeffectiveness, efficiency and coverage of software testing.Automation testing requires considerable amount ofinvestment for buying the software & compatible hardwareresources. Automation testing does what manual testingdoes not. Automation testing improves the accuracy & itsaves the time of the tester & organization’s money.Automation testing is best suited in the environment wherethe requirements are frequently changing & huge amount ofregression testing is required to be performed. Automationtesting is best suited in the environment where there arecritical test cases that are to be executed repeatedly. Itincreases the quality of testing structure & reduces the futuremaintenance cost. Various benefits of Automation testingare fast run of test case. Reusable test cases are made &these test cases are reliable, comprehensive &Programmable.The main difference between Manual testing & Automatedtesting is that Automation testing is best suited for theenvironment where the Repetitive work is more (e.g.,running regression tests, re-entering the same test data,and checking against coding standards). Also, manualtesting is best suited for the environment where therequirement changes continuously.INTRODUCTION TO SELENIUMSelenium[1] is a portable software testing used forAutomation testing It is a framework comprises of manytools used for testing web applications. Selenium provides arecord/playback tool for authoring tests without learning atest scripting language (Selenium IDE). It has a testdomain-specific language (Selenese) to write test cases in anumber of popular programming languages, including C#,Java, Groovy, Perl, PHP, Python and Ruby. All these testcases written can then be run against most modern webbrowsers. Selenium can run on any operating systemplatforms like Windows, Linux, and Macintosh etc. It isopen source software that can be down loaded from the36

Vishawjyoti et al, Journal of Global Research in Computer Science, 3 (12), December 2012, 36-43website of selenium. Selenium was originally developed byJason Huggins, who was later joined by other programmersand testers at thought works.Selenium is a suite of tools for web automation testing.Selenium Suite includes following components: SeleniumIDE, Selenium Core, Selenium 1 (known as Selenium RC orRemote Control), Selenium 2 (known as Selenium Webdriver), Selenium-GridSELENIUM IDESelenium IDE is an integrated development environmentfor Selenium scripts. It is implemented as a Firefoxextension, and allows you to record, edit, and debug tests. Itwas previously known as Selenium Recorder. Selenium IDEis not only recording tool: it is a complete IDE. SeleniumIDE (Integrated Development Environment) works similarto commercial tools like QTP, Silk Test and Test Partneretc.In this paper our focus is to perform automation testing of aweb application using automation testing tool “SeleniumIDE”.STEPS FOR IMPLEMENTATION OF TEST CASESUSING SELENIUMProblem analysis:It is the process of gathering information to discover thebasis of positives & negatives of a proposed system. Forexample let us consider a problem to develop a website foruser registration & login. For this we have designed awebsite with the name DEMO. Here we have to test the webpage of a registration form of a website DEMO.The snapshot for Demo isFigure 2: Screen of registration pageWriting test cases: Test case is a document that includes aprocedure to perform testing. A test case includes a set oftest inputs, execution conditions, and expected outputdeveloped for a particular objective, e.g. to check aparticular program path or to verify that the specific inputwill meet with the desired output. There is no prescribedformat for writing a test case. , but a test case must includeinput, expected behavior, expected output. We have asample test case for first name field of registration page ofDEMO website.Figure 1: Main screen of website DEMO JGRCS 2010, All Rights Reserved37

Volume 3, No. 12, December 2012Journal of Global Research in Computer ScienceRESEARCH PAPERAvailable Online at www.jgrcs.infoTEST CASE OF “FIRST NAME” FOR REGISTRATION PAGE:Table 1: Test cases written for First Name field of Registration pageS.No01Test Case IdFirst Name JGRCS 2010, All Rights ReservedObjectText boxTest DescriptionChecking the functionalityof the “Name” text box.Execution Steps1.Enteringthevalue as "12345" andclicking on the "Submit"Push button2.Enteringthevalue as "/*-- -" andclicking on the ""Submit" Push button3.Enteringthevalue as "12354/*-- -"and clicking on the"Submit" Push button4.Enteringthevalue as Null Charactersand clicking on the"submit" Push button5.Enteringthevalue as "" blankspace and clicking onthe "Submit"Pushbutton6.Enteringthevalue as "a to z" andclicking on the "submit"Push button7.Enteringthevalue as "abcd12354/*- -" and clicking on the"Submit" Push button8.EnteringInfiniteentryandclicking on the “Submit"Push buttonExpected Behavior1.Should show thepopuperrormessage"Invalid entry. First Nameaccepts only characters".After clicking the okbutton in the message thecursor should focus on thetextbox.2.Should show thepopuperrormessage"Invalid entry. First Nameaccepts only characters".After clicking the okbutton in the message thecursor should focus on thetextbox.3.Should show thepopuperrormessage"Invalid entry. First Nameaccepts only characters".After clicking the okbutton in the message thecursor should focus on thetextbox.4.Should show thepopuperrormessage"FirstName is a requiredfield". After clicking the okbutton in the message thecursor should focus on thetextbox.5.Should show thepopuperrormessage"Invalid entry. First Nameaccepts only characters".After clicking the okbutton in the message thecursor should focus on thetextbox.6.Should accept thevalue and cursor shouldfocus on the "Last Name"textbox.7.Should show thepopuperrormessage"Invalid entry. First Nameaccepts only characters".After clicking the okbutton in the message thecursor should focus on thetextbox.8.Should able to38

Vishawjyoti et al, Journal of Global Research in Computer Science, 3 (12), December 2012, 36-43acceptupCharactersto"35"Implementation of test cases using SELENIUM toolFigure 3: Screen of Selenium for recording Test Case.Selenium IDE is add on feature in Firefox. To activateselenium the following steps are to be followed.Select tools option from firefox menu bar. Select seleniumIde option from tools popup. The screen shown in figurewill appear. It has a recording button on right side of the JGRCS 2010, All Rights Reservedscreen. If mouse pointer is placed on the button then there isa popup message “ NOW RECORDING ,CLICK TO STOPRECORDING”. This message shows that selenium ide isready for recording test cases.39

Vishawjyoti et al, Journal of Global Research in Computer Science, 3 (12), December 2012, 36-43Figure 4: Screen for entering the value of field Last Name & corresponding record in selenium.(ii) There is a red color recording button on the right side ofthe selenium environment. Once activating recording mode,then what so ever data is entered in the web page willautomatically recorded in the selenium. For example whenvalue of Last Name is entered in the web page, thecommand corresponding to that is recorded on the seleniumIDE with command “type” target “name LastName” andvalue “garg”. Same value entered on web page.Figure 5: Screen for entering the value of field E-Mail & corresponding record in selenium.(iii) When value of E-mail is entered in the web page, thecommand corresponding to that is recorded on the seleniumIDE with command “type” target “name email” and value“ravi20007@ymail.com”. Type command correspondsaction taken by user, means typing the data.Figure 6: Screen for entering the value of field Password & corresponding record in selenium. JGRCS 2010, All Rights Reserved40

Volume 3, No. 12, December 2012Journal of Global Research in Computer ScienceRESEARCH PAPERAvailable Online at www.jgrcs.infoThe value of password is entered in the web page, thecommand corresponding to that is recorded on the seleniumIDE with command “type” target “name password” andvalue “abc123”. Type command corresponds action takenby user, means typing the data. “Target” on selenium screencorresponds to field whose value is to be executed duringexecutionofthetestcase.Figure 7: Screen for entering the value of field Age & corresponding record in selenium.The value of “age” is entered in the web page, the commandcorresponding to that is recorded on the selenium IDE withcommand “type” target “name age” and value “23”.Type command corresponds action taken by user, means JGRCS 2010, All Rights Reservedtyping the data. “Target” on selenium screen corresponds tofield whose value is to be executed during execution of thetest case. “value” is the expected output which should matchwith the actual value during the run of the test case.41

Vishawjyoti et al, Journal of Global Research in Computer Science, 3 (12), December 2012, 36-43Figure 8:Screen for entering the value of field Mobile & corresponding record in selenium.Figure 9:Screen for entering the command “ verify text present” in selenium .After entering the data , a screen will appear as shown infigure 9. then user has to stop recording by clicking on redbutton & to enter a command “ verify text present” & target JGRCS 2010, All Rights Reservedvalue “FirstName is a required field”. This command is usedto search the message as user has not entered the data for thefield “first Name”.42

Vishawjyoti et al, Journal of Global Research in Computer Science, 3 (12), December 2012, 36-43Figure 10: Screen for successful runnikng of test case no. 4 given in Table 1.Using selenium, when we run the test case using runbutton, then all the values of the fields are matched with thetarget values, whose values are entered through TYPEcommand. But the values of the message will be matchedthrough Verify text present.CONCLUSIONAutomated Software testing is the best way to increase theeffectiveness, efficiency and coverage of software testingand Selenium is a framework comprises of many tools usedfor testing web applications. With the help of the case study,we analyze and find the testing of a web application usingautomation testing tool “Selenium IDE”. Using thisapproach, test cases are automatically recorded inbackground while tester is entering the data in a webapplication screen and these test cases are reusable and bestsuited in the Regression Testing environment. JGRCS 2010, All Rights ReservedBIBLIOGRAPHY[1]. http://seleniumhq.org/[2]. http://code.google.com/p/selenium/[3]. http://www.guru99.com/automation-testing.html[4]. pdf[5]. http://en.wikipedia.org/wiki/Manual testing[6]. ngglossary/glossary of terms.pdf43

automation testing. Any type of software testing type can be executed both manually as well using an automation tool. Manual testing[5] is in which the testing activity is performed by testing persons. Manual testing requires a tester to perform manual test operations on the test software without the help of Test automation.

Related Documents:

programmable logic controller, is important for industrial engineer. Factory automation mainly covers; Machine level automation, Production line or work cell automation, Shop floor automation, and Plant level automation. The present manual focus on the 1st level of factory automation e.g. machine automation level. It provides an introduction .

CA Workload Automation Agent for Windows (CA WA Agent for Windows) CA Workload Automation Agent for z/OS (CA WA Agent for z/OS) CA Workload Automation CA 7 Edition (formerly named CA Workload Automation SE) CA Workload Automation ESP Edition (formerly named CA Workload Automation EE) CA Workload Control Center (CA WCC) Contact CA Technologies

automation strategy, launching successful service automation initiatives, preparing the organization for the changes service automation induces, and building enterprise-wide service automation capabilities. We continue to study service automation, and this working paper focuses on the adoption of RPA in shared service organizations and presents .

Low Code Automation Simply put, Low-Code Automation is a visual development of automation use-cases. Traditional methods of designing automation use-cases involve heavy scripting. Low code automation simplifies the entire process by providing an easy and intuitive drag-and-drop interface. Programmable networks are essential for a comprehensive

_SIMATIC Automation Tool _ SIMATIC S7/HMI SIMATIC Automation Tool V3.1 SP1 User Guide Manual V3.1 SP1, 05/2018 A5E43616265-AA Preface Downloading, licensing, and installing the SIMATIC Automation Tool 1 SIMATIC Automation Tool overview 2 Prerequisites and communication setup 3 Getting started with the SIMATIC Automation Tool 4

you can control how automation is deployed, and gain auditable knowledge about automation sources and outcomes. You can also use Red Hat Ansible Network Automation, a bundled offering tailored for network automation tasks. Read the Network automation for everyone e-book to learn more about Red Hat Ansible Network Automation. HOW TO USE THIS E-BOOK

CATIA V5 Automation & Scripting: Presentation 8 Knowledgeware, VB Automation, and CAA 9 Skills Required for CATIA V5 Automation 10 CATIA V5 Automation: Presentation (Windows only) 11 Language Used for Automation 12 VB Script 13 VBA 15 Visual Basic 16 Communication Chart on Windows 17 Documentations 18 Interface Documentation 19

There are no physical automation capabilities in RPA, like those that we normally associate with robots. As Figure 3 shows, RPA is wholly a software tool that complements, rather than replaces, other automation disciplines, like business process automation (BPA), IT process automation (ITPA) or test automation. There are even opportunities to .