-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple fixes to the CLT tasks (QuickPerfTestV1|RunLoadTestV1|RunJMeterLoadTestV1) #7226
Changes from all commits
e4d7ea0
1712ade
22d6c64
8fcea48
dc32c67
84afe04
ab51ce7
026052a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,35 +7,40 @@ function InvokeRestMethod($headers, $contentType, $uri , $method= "Get", $body) | |
return $result | ||
} | ||
|
||
function ComposeTestDropJson($name, $duration, $homepage, $vu, $geoLocation) | ||
function ComposeTestDropJson($name, $agentCount, $duration, $geoLocation) | ||
{ | ||
$coresPerAgent = 2 | ||
$coreCount = $agentCount*$coresPerAgent | ||
$tdjson = @" | ||
{ | ||
"dropType": "InplaceDrop", | ||
"dropType": "TestServiceBlobDrop", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
why is there a change in the drop type ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For Jmeter it was always TestServiceBlobDrop. |
||
"loadTestDefinition":{ | ||
"loadTestName":"$name", | ||
"agentCount":$agentCount, | ||
"runDuration":$duration, | ||
"urls":["$homepage"], | ||
"browserMixs":[ | ||
{"browserName":"Internet Explorer 11.0","browserPercentage":60.0}, | ||
{"browserName":"Chrome 2","browserPercentage":40.0} | ||
], | ||
"loadPatternName":"Constant", | ||
"maxVusers":$vu, | ||
"loadGenerationGeoLocations":[ | ||
{"Location":"$geoLocation","Percentage":100} | ||
] | ||
], | ||
|
||
"coresPerAgent": $coresPerAgent, | ||
"coreCount": $coreCount, | ||
"samplingRate": 15, | ||
"thinkTime": 0, | ||
"urls": [], | ||
"browserMixs": [], | ||
"loadPatternName": "Constant", | ||
"maxVusers": -1 | ||
} | ||
} | ||
"@ | ||
|
||
return $tdjson | ||
} | ||
|
||
function CreateTestDrop($headers, $CltAccountUrl) | ||
function CreateTestDrop($headers, $dropjson, $CltAccountUrl) | ||
{ | ||
$uri = [String]::Format("{0}/_apis/clt/testdrops?{1}", $CltAccountUrl, $global:apiVersion) | ||
$drop = InvokeRestMethod -contentType "application/json" -uri $uri -headers $headers -method Post -body "{ ""dropType"": ""TestServiceBlobDrop"" }" | ||
$drop = InvokeRestMethod -contentType "application/json" -uri $uri -headers $headers -method Post -body $dropJson | ||
return $drop | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did u do upgrade testing. not sure if existing build definition will break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, validated the upgrade path as well.