Skip to content

Commit

Permalink
Fix BlazeMeter & Azure engines doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rabelenda committed Aug 24, 2023
1 parent 8263093 commit 1ec8c77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/guide/scale/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public class PerformanceTest
ThreadGroup(2, 10,
HttpSampler("http://my.service")
)
).RunIn(new AzureEngine(System.getenv("AZURE_CREDS")) // AZURE_CREDS=tenantId:clientId:secretId
).RunIn(new AzureEngine(Environment.GetEnvironmentVariable("AZURE_CREDS")) // AZURE_CREDS=tenantId:clientId:secretId
.TestName("dsl-test")
/*
This specifies the number of engine instances used to execute the test plan.
In this case, means that it will run 2(threads in thread group)x2(engines)=4 concurrent users/threads in total.
Each engine executes the test plan independently.
*/
.Engines(2)
.TestTimeout(Duration.ofMinutes(20)));
.TestTimeout(TimeSpan.FromMinutes(20)));
Assert.That(stats.Overall.SampleTimePercentile99, Is.LessThan(TimeSpan.FromSeconds(5)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/scale/blazemeter.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PerformanceTest
ThreadGroup(2, 10,
HttpSampler("http://my.service")
)
).RunIn(new BlazeMeterEngine(System.getenv("BZ_TOKEN"))
).RunIn(new BlazeMeterEngine(Environment.GetEnvironmentVariable("BZ_TOKEN"))
.TestName("DSL test")
.TotalUsers(500)
.HoldFor(TimeSpan.FromMinutes(10))
Expand Down

0 comments on commit 1ec8c77

Please sign in to comment.