EECS 4313 Assignment 3
- Data Flow Testing, Slice-Based Testing and Mutation Testing
- Assignment goals
The purpose of this assignment is to give you experience on applying data flow testing, slice-based
testing and mutation testing approaches. In addition, you will also have a chance to evaluate the
goodness of existing test cases. Your task will be to create a test suite in JUnit, produce bug reports (if
any), and submit a written report describing your testing and evaluation results. Finally, you will work
on some tasks related to executing and analyzing load tests. - Task 1 – Borg Calendar
2.1 Getting started
Using the development environment you created for Assignment 2, complete the following tasks: - Perform data flow analysis for one of the methods that you have tested. Calculate the value of the
following coverage criteria:
All-Defs
All-Uses
All-P-Uses / Some-C-Uses
All-C-Uses / Some-P-Uses
If necessary, add test cases to bring these values as close to 100% as possible. - Derive the static backward slices for all A-defs (defined by assignment) and P-uses (used in a
decision predicate) in the method. Calculate the percentage of slices that your testing covers. If
necessary, add test cases to bring the percentage as close to 100% as possible. - Install the PIT mutation testing tool. Evaluate the effectiveness of all your test cases (test cases
from A2 and newly created test cases for this assignment) using PIT. Add or modify test cases,
accordingly. - If you believe that the additional test cases have revealed new bugs, attach bug reports in the
written report (see section below for details).
2.2 Code Structure and Testing
We will conduct automated testing to mark your testing code. Make sure you place all the white-box
testing Java code that you have created in a folder called eecs4313a3t1. There should be no sub-folders
inside eecs4313a3t1!
should use the following naming conventions for developing and packing your testing code:
The code package should be called “eecs4313a3t1”
Name the test suite as EECS4313A3AllTests.java
2.3 Written Report
You should create a written report (a3.pdf) describing the test cases and test results that you have done.
The report must include the following information:
The data flow analysis you performed and the calculation of the coverage metrics. You must
show which test cases are responsible for which dc-paths.
A description of the test cases you added to improve coverage. If your coverage was already high,
discuss how your testing was able to achieve this.
The slices that you identified and the percentage of slices that your testing covers. You must
show which test cases are responsible for which slices.
A description of the test cases you added to improve slice coverage. If your coverage was
already high, discuss how your testing was able to achieve this.
Evaluate the effectiveness of your test cases using mutation testing. Discuss and address any
issues if you have found in your written report.
Attaching bug reports if bugs are discovered using your testing methods. You should use the
same bug report format as in Assignment 1. Do not file these bug reports to the project’s bug
report system.
An appendix with the specification of the methods you are testing.
【EECS 4313】Presenting your thought processes in English is an important skill for a software engineer. If you have
trouble in writing English, ask someone to proof-read and correct your writing. You can also consult the
English as a Second Language Open Learning Centre (https://eslolc.laps.yorku.ca/) at the York
University.
- Task 2 – JPetStore
3.1 Getting started
In this task, you are required to conduct load test on the performance of an e-commerce website,
JPetStore using JMeter: - Download the JPetStore deployment war files at:
http://www.cse.yorku.ca/~zmji... - Deploy the application and double check if you can access the JPetStore website
(http://localhost/jpetstore/sh...). - Explore the system a bit and define some realistic, non-trivial test scenarios.
- Leverage the record-and-replay features to encode the test scenarios in JMeter.
- Load test the system for a period of time (5 – 30 minutes).
Since this task is for you to gain exposure on load testing, please pick some lower request
rate (e.g., 1 request/second) and do not overwhelm the system with extremely high load. - During the test execution, make sure you also record the performance counters and the logs.
- Analyze the results of the load test to see if there is anything abnormal:
Did the system crash/restart/hang during the test?
Did all the requests go through?
Is there unexpected resource usage during the test?
3.2 Written Report
In the second part of your written report (a3.pdf), you should describe the test cases and test results that
you have done. The report must include the following information:
The test scenarios that you have created;
The request rates and the duration of the load tests;
The analysis of your load tests and the description of any problems that you have found (if there
are any). - Submission
You must work in a team with at least three and at most six partners. Failure to form a team or a team
with the right sizes will result in loss of marks! Only 1 submission per group, please! You should
submit the following: - Submit a PDF of your written report (a3.pdf). Your report must include the names and the
student numbers of all the team members. - Submit the test code package (i.e., eecs4313a3t1) for task 1.
- Submit the testing artifacts (i.e., eecs4313a3t2) for task2, electronically. It should only contain
the JMeter test plan (JMX file) and a sub-folder (call “data”) containing the recorded logs and
counters used for your analysis.
推荐阅读
- 程序员|【高级Java架构师系统学习】毕业一年萌新的Java大厂面经,最新整理
- 单片机|自学单片机好找工作吗(会单片机能找什么工作?)
- c语言|一文搞懂栈(stack)、堆(heap)、单片机裸机内存管理malloc
- Python|教你写个简单好用的Python脚本一键自动整理文件非常适合办公用~
- 为了搭建冬奥会志愿者系统,他独自跨越大半个中国学习低代码
- 程序员|程序员“真实”日常(每天敲代码不到 1 小时)
- GitHub|7 款可替代 top 命令的工具
- 程序员|自学编程,学完新的又忘旧的,该怎么办()
- 程序员|Python和C究竟选哪个()
- 程序员|5 分钟解决前后端联调问题,说一说前端代理这件事