Chapter

A Convertor Tool to Transform the Android Mobile Application into Java Codes for Software Testing

Authors:
To read the full-text of this research, you can request a copy directly from the authors.

Abstract

Software testing is an important phase under the development of any software. It is crucial to be able to test the software before it can be used by users. This paper discusses the convertor tool that is first used to convert the mobile application into Java source codes. Then software testing is done by using Eclipse Plug-in Tool (EPiT) to generate test cases automatically. The Java Unit (Junit) testing framework is also used for to generate the test cases. Then both EPiT and JUnit are used for comparison purpose of the time taken to generate the test cases.

No full-text available

Request Full-text Paper PDF

To read the full-text of this research,
you can request a copy directly from the authors.

ResearchGate has not been able to resolve any citations for this publication.
Article
Full-text available
Software testing is a vital and complex part of the software development life cycle. Optimization of software testing is still a major challenge, as prioritization of test cases remains unsatisfactory in terms of Average Percentage of Faults Detected (APFD) and time execution performance. This is attributed to a large search space to find an optimal ordering of test cases. In this paper, we have proposed an approach to prioritize test cases optimally using Firefly Algorithm. To optimize the ordering of test cases, we applied Firefly Algorithm with fitness function defined using a similarity distance model. Experiments were carried on three benchmark programs with test suites extracted from Software-artifact Infrastructure Repository (SIR). Our Test Case Prioritization (TCP) technique using Firefly Algorithm with similarity distance model demonstrated better if not equal in terms of APFD and time execution performance compared to existing works. Overall APFD results indicate that Firefly Algorithm is a promising competitor in TCP applications.
Article
Full-text available
In the past few years, mobile devices have been increasingly replacing traditional computers as their capabilities such as CPU computation, memory, RAM size, and many more, are being enhanced almost to the level of conventional computers. These capabilities are being exploited by mobile apps developers to produce apps that offer more functionalities and optimized performance. To ensure acceptable quality and to meet their specifications (e.g., design), mobile apps need to be tested thoroughly. As the testing process is often tedious, test automation can be the key to alleviating such laborious activities. In the context of the Android-based mobile apps, researchers and practitioners have proposed many approaches to automate the testing process mainly on the creation of the test suite. Although useful, most existing approaches rely on reverse engineering a model of the application under test for test case creation. Often, such approaches exhibit a lack of comprehensiveness as the application model does not capture the dynamic behavior of the applications extensively due to the incompleteness of reverse engineering approaches. To address this issue, this paper proposes AMOGA, a strategy that uses a hybrid, static-dynamic approach for generating user interface model from mobile apps for model-based testing. AMOGA implements a novel crawling technique that uses the event list of UI element associated with each event to dynamically exercise the events ordering at the run-time to explore the applications' behavior. Results of the experimental assessment showed that AMOGA represents an alternative approach for model-based testing of mobile apps by generating comprehensive models to improve the coverage of the applications.
Article
Full-text available
A challenging part of software testing entails the generation of test cases. A good test case should have the quality to cover more features of test objective. The techniques for automatic generation of test cases try to efficiently find a small set of cases that allow an adequacy criterion to be fulfilled, thus reducing the cost of software testing and resulting in more efficient testing of software products. In this paper we introduce an all-around classification framework for automatic test case generation approaches in terms of test type and Algorithm, and represent some test case evaluation approaches. Finally we illustrate a comparison between different existing techniques.
Article
Full-text available
Design problems in industrial engineering often involve a large number of design variables with multiple objectives, under complex nonlinear constraints. The algorithms for multiobjective problems can be significantly different from the methods for single objective optimization. To find the Pareto front and non-dominated set for a nonlinear multiobjective optimization problem may require significant computing effort, even for seemingly simple problems. Metaheuristic algorithms start to show their advantages in dealing with multiobjective optimization. In this paper, we extend the recently developed firefly algorithm to solve multiobjective optimization problems. We validate the proposed approach using a selected subset of test functions and then apply it to solve design optimization benchmarks. We will discuss our results and provide topics for further research.
Article
Full-text available
Bio-inspired computation is a field of study that connects together numerous subfields of connectionism (neural network), social behavior, emergence field of artificial intelligence and machine learning algorithms for complex problem optimization. Bio-inspired computation is motivated by nature and over the last few years, it has encouraged numerous advance algorithms and set of computational tools for dealing with complex combinatorial optimization problems. Black Hole is a new bio-inspired metaheuristic approach based on observable fact of black hole phenomena. It is a population based algorithmic approach like genetic algorithm (GAs), ant colony optimization (ACO) algorithm, particle swarm optimization (PSO), firefly and other bio-inspired computation algorithms. The objective of this book chapter is to provide a comprehensive study of black hole approach and its applications in different research fields like data clustering problem, image processing, data mining, computer vision, science and engineering. This chapter provides with the stepping stone for future researches to unveil how metaheuristic and bio-inspired commutating algorithms can improve the solutions of hard or complex problem of optimization.
Conference Paper
Full-text available
We present jPET, a white box test-case generator (TCG) which can be used during software development of Java applications within the Eclipse environment. jPET builds on top of PET, a TCG which automatically obtains test-cases from the byte code associated to a Java program. jPET performs reverse engineering of the test-cases obtained at the byte code level by PET in order to yield this information to the user at the source code level. This allows understanding the information gathered at the lower level and using it to test source Java programs.
Article
Software testing is considered as an essential and critical part of the software development process. To improve the efficiency of software testing, the test case prioritization (TCP) technique is usually used to preprocess the test case set, which is formulated as a single-objective or multiple-objective optimization problem and solved by swarm intelligence algorithms. In this paper, we adopted one of the state-of-art swarm intelligence algorithms– Artificial Fish School Algorithm to solve the TCP problem. Specifically, the coding method of artificial fish school was designed in combination with the test case set; the Average Percentage of Test-point Coverage and Effective Execution Time were selected to optimize the design of clustering behavior, foraging behavior and tail-chasing behavior of artificial fish school; the optimal solution was found by population iteration. Empirical evaluation was conducted to analyze the performance of the proposed method. Comparison experiments were also carried out, and the experimental results showed that in terms of both single-objective and multiple-objective, the Artificial Fish School Algorithm could better solve the TCP problems and improve the efficiency of software testing.
Conference Paper
Most software development will use a standard software development life cycle (SDLC). In SDLC, four phases are involved during development of any system. They are analysis, design, implement and testing. During testing phase, test cases are used in order to test the functionalities of the system developed. Test cases are generally extracted from the source codes manually. This paper presents an alternative approach to automate the process of generating the test cases by developing an eclipse plug-in tool. The plug-in tool will be able to generate the test cases automatically from the source codes by examining its line of code (LOC). The plug-in tool is an open source software to help the software developers generate the test cases for their system that they developed. It will help to ease the problems for software developers to come up with test cases manually as well as to check the system functionalities whether it meets the users' requirements or not.
Article
Software testing is an important but complex part of software development life cycle. The optimization of the software testing process is a major challenge, and the generation of the independent test paths remains unsatisfactory. In this paper, we present an approach based on metaheuristic firefly algorithm to generate optimal test paths. In order to optimize the test case paths, we use a modified firefly algorithm by defining appropriate objective function and introducing guidance matrix in traversing the graph. Our simulations and comparison show that the test paths generated are critical and optimal paths.
Sapienz: multi-objective automated testing for Android applications
  • K Mao
  • M Harman
  • Y Jia
EPiT: a software testing tool for generation of test cases automatically
  • R Ibrahim
  • A A B Amin
  • S Jamel
  • J A Wahab
Combinatorial black hole algorithm: a metaheuristic approach for combinatorial testing
  • I S Ibrahim
  • R Ibrahim
  • M Mat Rejab
Sena TLS-parser: a software testing tool for generating test cases
  • R Ibrahim
  • S W G Abusalim
  • S Jamel
  • J A Wahab