StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Software Testing Tools - Assignment Example

Summary
The assignment "Software Testing Tools" focuses on the critical, thorough, and multifaceted analysis of the functioning of the main software testing tools, such as JUnit and TestNG. JUnit and TestNG are software tools that offer platforms for java developed programs…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER91.2% of users find it useful

Extract of sample "Software Testing Tools"

Software Testing Name: Course: Tutor: Date: Purpose of testing tools such as JUnit and TestNG JUnit and TestNG are software tools that offer platforms for java developed programs and software to be tested effectively and efficiently in a fast way. These test tools offer a platform for identification of bugs in software. Identification of errors or bugs in software and fixing of the same is much cheaper than fixing it at later stages. In order to ensure quality therefore testing has to be done well and perfectly (Ron, 2005). Once a product is developed, and ready for deployment each developer want to offer the users the best experience while using the same. Some platforms for development might present a good appearance to a user but if the same software is deployed in another platform, the appearance and performance might not be the same. Testing allows therefore the developers to plan well for the expected problems during deployment and therefore develop solutions adequate for the same (Ron, 2005). In order furthermore to ensure quality, testing has to be done. Te number of bugs found in any program will help the developers determine the software standard. Software standard define the reliability of the software. Quality software is of high standard in nature. Testing therefore helps to identify and build the standards to the desired level. Benefits of using testing tools such as JUnit or TestNG compared to the manual testing process JUnit and TestNG offer an automated testing process to software, thus allows fast realization of the process. Below is a list of some of the advantages offered by automated testing: Automation offers a huge gain if test cases are run repeatedly. It allows faster and easy test runs. In the case of manual testing it become tiresome since one has to rerun every set of tests for every release. Automated testing also offers the advantage of allowing tests to be done on different platforms or on different configurations. This becomes difficult to be done using manual testing Testing time can be decreased in manual testing by running simultaneously on different machines. Testing time in the case of manual testing is time consuming since no simultaneous tests can be done at the same time. Another benefit realised from automation of testing is the ability to run regressions on a code that is continuously changing. A continuously changing code is hard to be tested by manual process. Finally since automated testing is a faster process the long run advantages of cost reduction outweigh the manual testing. (www.mkyong.com, 2009) Similarities and differences between JUnit and TestNG Similarities Both JUnit and TestNG implement both exception tests. Exception tests are test that are thrown by an application Ignore Test is also implemented in both. Ignore test is a test that determines whether it should ignore a unit test or not. Example for JUnit Test @Ignore("Not Ready to Run") @Test public void divisionWithException() { System.out.println("Method is not ready yet"); Example for TestNG @Test(enabled=false) public void divisionWithException() { System.out.println("Method is not ready yet"); } Time test is also implemented in both the TestNG and JUnit applications. Time test means that if a unit test takes longer than the expected duration to run then the test is terminated and the test reported as failed Differences In as much as both the two software have Suite Test implementation, the way it is implemented in the two is different. However, they serve the same purpose. Parameterized test is also implemented in both the test software; however, the implementation is different in both. Dependency test means methods are tested based on dependency. This application is implemented in both the software application but like the previous two, their method of implementation is different The execution model for JUnit and TestNG are however different. JUnit creates a separate instance for each unit test run, this is not the case for TestNG. (www.mkyong.com, 2009) package eliud5; import java.util.*; public class Assign211One { // declaration of variables static int mem = 0; static int i=0; static int length = 5; static int memoryLocation [] = null; static String Data[] = new String[length]; static String Dataa = "o"; static boolean flagSave=false; static boolean flagRetrieve=false; static boolean flagDel= false; static Scanner keyboard = new Scanner(System.in); // String returned = " "; /** * dataRetrieval * A method to retrieve data from the memory location of int mem1 * @param mem1 * @return returned */ private static String dataRetrive(int mem1){ String returned = " "; String datart="Retrieve"; for(int x=0; x Read More
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us