Make a Test Plan by Jmeter tool
[11/11/2014]
Before testing a project, we’re
make a Test Plan which is support Jmeter. We have to note Thread groups,
Listener, Assertions, Sample generating controllers, logic controllers, etc
Remember: one Test Plan have a
thread group at least
Explain keyword below
1.
Samplers: Elements that send request to servers; there are some
request: HTTP/ HTTPS, FTP, SOAP, JDBC, “java”
2.
Listeners: there’re collected results of your’s Run test
3.
Timers : Being use to which insert (độ trễ) giữa những request “to
have make your’s test “hiện thực hơn” more real *.*
4.
Logic Controllers: Nếu: những request được định nghĩa trong Test
Plan của bạn sẽ thực thi phụ thuộc vào 1
vài logic thì bạn cần đền Logic controllers ( if requests are define in your’s
Test Plan that will execute and depend on some logic then you need Logic
Controllers. We’re appropriate with if-then-else structure and loop in java or
whatever (bất cứ) programming language other.
5.
Configuration Elements: that work with Samplers anyway (bằng
cách) insert/ update information general with requests
6.
Assertions: permiting you test ( nếu phản ứng/ responses bạn lấy
chứa dữ liệu mong đợi hay nhận trong phạm vi/ area thời gian đã định)
Tutorial set up
and testing
Step 01: Running
Jmeter file
Step 02: Create a
Thread group by right-click mouse Test Plan element => selected “ADD” choose
Thread group option ( next step, we’re assume number of count users and users
quantity are repeat – giả lập SL user và SL lặp cho test plan)
Viewing the
screen was create below:
Maybe a number of
attributes setting/ establish below:
1.
Name: we can create any of name for Thread group
2.
Number of Threads: we can input more threads to
have assume. Each users independent ( được đại diện bởi mỗi Thread). So we
wanna assume with five users then we have to input data for it
3.
Ramp-Up Period: (cho biết time đưa ra bởi Jmeter
để tạo tất cả những Thread cần thiết. Ex: If we establishs about ten minutes
for five Threads then Jmeter will be perform in ten minutes to which creates
five Threads. Moreover,
No comments:
Post a Comment