-
TestPlan "Test Plan"
(globalVars:[],
executeTearDownThreadsOnShutdown: true)
Comments: Demo Test plan for schematic view
-
-
handle cookies(clearOnEachIteration: false)
-
CacheManager "HTTP Cache Manager"
-
add headers "HTTP Header Manager"
(Accept-Encoding)
-
Reusable Elements
(disabled)
-
-
Virtual Users "Thread Group"
(
threads: "1",
loops: "1",
ramp-up: "1"
)
executing
-
-
reuse controller
(
Test Plan
>
Test Fragment
>
Login
)
-
http request "HTTP Request-params"
(method: "GET",
url: "
://:/",
body: [
"toto"=
"titi"
,
"tata"=
"tutu"
]
,
upload-files: [
]
)
-
-
assert as "Response Assertion" that (response_data)
contains
[
"data"
])
-
flow control "Think Time"
pause for 0ms
current thread
-
-
think-time(const:1000ms,
variation:100ms)
-
http request "HTTP Request-params-with-file"
(method: "GET",
url: "
://:/",
body: [
"toto"=
"titi"
,
"tata"=
"tutu"
]
,
upload-files: [
{param="file",
path="testFile.csv",
mime-type="application/text"}
]
)
-
-
assert as "Response Assertion" that (response_code)
is equal to
[
"403"
])
-
extract "CSS Selector Extractor"
(exportedVar: "var1")
-
flow control "Think Time"
pause for 0ms
current thread
-
-
think-time(const:1000ms,
variation:100ms)
-
http request "HTTP Request-body"
(method: "GET",
url: "
://:/",
body: "toto=titi&tata=tutu"
,
upload-files: [
]
)
-
-
assert as "Response Assertion" that (response_headers)
contains
[
"Accept"
])
-
flow control "Think Time"
pause for 0ms
current thread
-
-
think-time(const:1000ms,
variation:100ms)
-
http request "HTTP Request-body-with-file"
(method: "GET",
url: "
://:/",
body: "toto=titi&tata=tutu"
,
upload-files: [
{param="file",
path="testFile.csv",
mime-type="application/text"}
]
)
-
-
assert as "Response Assertion" that (response_headers)
matches
[
"OK(.*)"
])
-
assert as "Response Assertion" that (response_headers)
is not equal to
[
"Error"
])
-
assert as "Response Assertion" that (response_headers)
does not contain one of
[
"TOTO"
,
"TITI"
])
-
flow control "Think Time"
pause for 0ms
current thread
-
-
think-time(const:1000ms,
variation:100ms)