Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Products
/
VSTT-Plugins
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
2
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
375b6d2f
...
375b6d2f24267d08970c88385a2f52f670769bcd
authored
2019-09-13 10:56:36 +0200
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
New WebTest Plugin to set Response Body Bytes Limit
1 parent
2171274d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
LIL_VSTT_Plugins/Beta.cs
LIL_VSTT_Plugins/Beta.cs
View file @
375b6d2
...
...
@@ -538,7 +538,8 @@ namespace LIL_VSTT_Plugins
{
rx
=
new
Regex
(
DepRegex
);
}
e
.
WebTest
.
ResponseBodyCaptureLimit
=
10000000
;
// We cant do this here, replaced by SetResponseBodyCaptureLimitWebTestPlugin
//e.WebTest.ResponseBodyCaptureLimit = 10000000;
if
(
e
.
Request
.
HasDependentRequests
)
{
foreach
(
WebTestRequest
r
in
e
.
Request
.
DependentRequests
)
...
...
@@ -563,6 +564,20 @@ namespace LIL_VSTT_Plugins
}
}
[
DisplayName
(
"Response Body Capture Limit"
),
Description
(
"Sets the Response Body Byte Capture Limit for this WebTest. Warning, this can increase memory and cpu usage on the agents."
)]
public
class
SetResponseBodyCaptureLimit
:
WebTestPlugin
{
[
DisplayName
(
"Limit Bytes"
),
Description
(
"The number of bytes to set the limit to. Default value is 1.5 MB"
)]
[
DefaultValue
(
1572864
)]
public
int
Limit
{
get
;
set
;
}
public
override
void
PreWebTest
(
object
sender
,
PreWebTestEventArgs
e
)
{
e
.
WebTest
.
ResponseBodyCaptureLimit
=
Limit
;
}
}
[
DisplayName
(
"Regular Expression Loop"
),
Description
(
"Loop Condition that matches once on each regexp in previous response body"
)]
public
class
RegExpLoop
:
ConditionalRule
{
...
...
Please
register
or
sign in
to post a comment