Professional Documents
Culture Documents
problem. Thus, now papers introducing Meta heuristic methods are indirectly impacted by aspects, this approach
techniques are referred. can reduce the testing efforts by relying on genetic algorithm.
Meta-heuristic techniques are very much used in software Fuzzy logic has been used in aspect oriented for proposing a
testing. Pandey et al [2] proposed a technique called search model on coupling measures [10]. In object oriented and
based software testing. This paper gives an insight into the module oriented systems, quality metrics are used for quality
recent trends of the applications of search based techniques features but very less has been done for aspect-oriented
to generate Applications of meta-heuristic techniques in the systems. Various factors like Number of dependencies,
field of software testing phases. Meta-heuristic techniques responsibility and Instability have been related with coupling
can also be applied in generation of test data [3]. The aim is to for making the comparison. Another application of fuzzy logic
generate the optimum set of test data. Next meta-heuristic approach has been identified in measuring the complexity of
techniques are needed to generate searchbased test data for a generic aspect-oriented system [11]. A generalized
branch coverage [4]. This paper introduces multiobjective framework for finding the complexity of AO systems has been
branch. While studying meta-heuristics, some evolutionary defined. That it takes into account three AOP languages,
test environment has been identified for automatic structural which are AspectJ, CaesarJ and Hyper/J.
testing [5]. The environment has been developed that
Fuzzy clustering is very much useful in various applications.
performs fully automatic test data generation for most
One of them is using it in test-case prioritization. Nida et al
structural test methods.
[12] identified an approach to rank the test cases as per their
After getting knowledge of meta-heuristics, a basis of object preference degrees. Software testing optimization can also
oriented was reviewed to find the applications of meta- be achieved by fuzzy clustering [13]. This is very much useful
heuristics in object oriented programming. Nothing much has in reducing the time spent in testing.
been identified in the field of meta-heuristics in aspect
oriented. So, a general comparison of AOP vs OOP is also
being referred in order to apply meta-heuristics in aspect 3. PROPOSED METHODOLOGY
oriented.
On analysing the various works done, it has been
Dr. Suresh [6] presented a method of Software quality
identified that very less has been done using meta-
assurance for object-oriented systems using meta-heuristic
heuristics with AOP in software testing. Thus, this paper
search techniques. This paper tells how much capable meta-
heuristic search techniques are in software fault classification proposes a fuzzy technique which helps to reduce the
for Apache Integration Framework. Also, regression testing of number of test cases for better efficiency and
object oriented systems [7] has been reviewed. A hybrid optimizations in the testing process. The algorithm
technique is formed which identifies the changes that are not defined as:
visible in design models. Finally, comparison of AOP with 1. Construct activity diagram.
OOP is done and identifying whether AOP is harder or easier 2. Conversion of activity diagram to Control
than OOP [1]. An incremental testing process is proposed in flow graph.
this paper, which tests crosscutting functionalities as aspects 3. Calculation of Cyclomatic Complexity.
in successive steps. Model based testing approach for object 4. Calculation of independent paths.
oriented systems is being considered by Arilo et al [15]. By 5. Calculate number of nodes of each path.
identifying four hundred and six papers, this paper narrowed This will act as cost of each path.
down it to seventy-eight papers for reference. 6. Apply fuzzy -c algorithm to form clusters.
On identifying the meta-heuristic techniques and their usage 7. Select best test case from given cluster.
in object-oriented programs, the problem was identified that This is done by choosing a test case which is most
not much has been done for implementation of meta- closely related to other test cases i.e. which has
heuristics in aspect oriented programming. A proper review the least sum of difference with other test cases.
regarding the same has also never been done. So, next thing is 8. Calculate efficiency of two things.
identifying the papers in this field. The strategy goes by a. First, calculate efficiency
finding papers written for genetic algorithm, fuzzy algorithm of the whole algorithm by comparing the
or their combination. Fifth, lets identify the work done in the number of original test cases vs new test
field of using genetic algorithm and mutation testing in aspect cases.
oriented programs. b. Second, how efficient
Genetic algorithm has been applied to increase the efficiency and fault free this algorithm is , by
of a Data Flow-based Test Data Generation Approach [8]. computing the efficiency with which
How effective it is to use a genetic algorithm for the same has given output will cover all the cases. This
been identified here. Another major application of genetic is computed by calculating difference of
programming is in effort estimation [9]. Ferrucci et al [9] the chosen test cases with other given in
found the impact different fitness functions can have on effort the cluster. Less the difference, more
estimation. To consider the indirect impact of aspects, efficient it will be.
Delamare et al [14], proposed an approach. When many
2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3173
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 04 | Apr -2017 www.irjet.net p-ISSN: 2395-0072
Covering each and every step in detail with the help of an Step 2: Conversion of activity diagram to Control flow
example is further described in this paper. An example graph.
with 5 test cases has been discussed which properly
explains the use case of each step.
2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3174
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 04 | Apr -2017 www.irjet.net p-ISSN: 2395-0072
Step 7: Select best test case from given cluster. [5] J. Wegener, A. Baresel, and H. Sthamer, Evolutionary
From cluster 1: output is: 9 test environment for automatic structural testing,
From cluster 2: output is: 34 Information and Software Technology, vol. 43, no. 14,
pp. 841854, 2001.
Evaluating for cluster 1: values are 4,9,12.
[6] Y. Suresh, Software quality assurance for object-
For 4: (9-4) + (12-4) = 13 oriented systems using meta-heuristic search
For 9: (9-4) + (12 - 9) = 8 techniques, in 2015 International Conference on
For 12: (12-9) + (12-4) = 11 Applied and Theoretical Computing and Communication
Least value is of 9. Technology (iCATccT), 2015.
Evaluating for cluster 2: values are 13, 14, 15 [7] Pierre-Luc Vincent, Linda Badri and Mourad Badri,
For 13: (14-13) + (15-13) = 3 Regression Testing of Object-Oriented Software.2013.
For 14: (14-13) + (15 - 14) = 2 [8] M. Mahajan, S. Kumar, and R. Porwal, Applying genetic
For 15: (15-14) + (15-13) = 3 algorithm to increase the efficiency of a data flow-based
Least value is of 14. test data generation approach, ACM SIGSOFT Software
Step 8: Calculate efficiency. Engineering Notes, vol. 37, no. 5, p. 1, 2012.
First: (1- Number of reduced test cases/Number of [9] F. Ferrucci, C. Gravino, R. Oliveto, and F. Sarro, Genetic
Programming for Effort Estimation: An Analysis of the
original test cases) * 100 = (1-2/5) * 100 = 60% Impact of Different Fitness Functions, in 2nd
Second: International Symposium on Search Based Software
Cluster 1: (1-least difference/ (sum of cost of test cases in Engineering, 2010.
a cluster)) * 100 = (1-8/ (4+9+12))*100 = 68% [10] F. Chishti and A. Singhal, Proposed model on coupling
Cluster 2: (1-least difference/ (sum of cost of test cases in measures in aspect oriented software development
a cluster)) * 100 = (1-2/ (13+14+15))*100 = 95.2% using fuzzy logic, in 2016 2nd International Conference
on Advances in Computing, Communication, &
5. CONCLUSION Automation (ICACCA) (Fall), 2016.
[11] R. Kumar, P. S. Grover, and A. Kumar, A Fuzzy Logic
In this paper, a proposed algorithm for reducing the Approach to Measure Complexity of Generic Aspect-
Oriented Systems, The Journal of Object Technology,
number of test cases keeping AOP in mind has been vol. 9, no. 3, p. 59, 2010.
discussed. The algorithm gives the best test case keeping [12] N. Gke, F. BELL, M. EMNL, and B. T. DNER, Model-
everything in mind. Also, it tells with what efficiency it based test case prioritization using cluster analysis: a
tells that the given test case is the best. On looking at the soft-computing approach, TURKISH JOURNAL OF
efficiency, we come to know to either run it or not. ELECTRICAL ENGINEERING & COMPUTER SCIENCES,
vol. 23, pp. 623640, 2015.
Explanation through example covers each and every [13] G. Kumar and P. K. Bhatia, Software testing
step of the algorithm for easy understanding. This optimization through test suite reduction using fuzzy
algorithm can easily be applied on any example given clustering, CSI Transactions on ICT, vol. 1, no. 3, pp.
253260, 2013.
activity diagram and further work would be done.
[14] R. Delamare and N. A. Kraft, A Genetic Algorithm for
Computing Class Integration Test Orders for Aspect-
This algorithm would be one of the most important Oriented Systems, in 2012 IEEE Fifth International
step in exploring fuzzy logic with AOP. Any researcher can Conference on Software Testing, Verification and
gain enough information from this using this algorithm. Validation, 2012.
Also, it marks the beginning of further researches in this [15] A. C. Dias Neto, R. Subramanyan, M. Vieira, and G. H.
field. Travassos, A survey on model-based testing
approaches, in Proceedings of the 1st ACM
REFERENCES international workshop on Empirical assessment of
software engineering languages and technologies held in
conjunction with the 22nd IEEE/ACM International
[1] Mariano Ceccato, Paolo Tonella and Filippo Ricca , Is Conference on Automated Software Engineering (ASE)
AOP code easier or harder to test than OOP code?.2015. 2007 - WEASELTech 07, 2007.
[2] Abhishek Pandey, Dr. Soumya Banerjee and Dr. G. Sahoo,
Applications of Meta Heuristic Search Algorithms in
Software Testing. 2014.
[3] P. R. Srivastava, V. Ramachandran, M. Kumar, G.
Talukder, V. Tiwari, and P. Sharma, Generation of test
data using meta heuristic approach, in TENCON 2008 -
2008 IEEE Region 10 Conference, 2008.
[4] K. Lakhotia, M. Harman, and P. McMinn, A multi-
objective approach to search-based test data
generation, in Proceedings of the 9th annual conference
on Genetic and evolutionary computation - GECCO 07,
2007.
2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3175