Skip to content

Commit

Permalink
Merge pull request #143 from soramitsu/scn/change_scn
Browse files Browse the repository at this point in the history
Scn/change scn
  • Loading branch information
timofeevmd authored Aug 29, 2024
2 parents 1f13432 + 7f8d235 commit 94b7855
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/test/java/scenarious/GeneralQueries.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@

public class GeneralQueries {

public static ScenarioBuilder findAllAccounts = scenario("query find all accounts")
public static ScenarioBuilder generalLiteQueries = scenario("general queries")
.feed(csv("preconditionList.csv").circular())
//.exec(Queries.queryPostFindAllAccounts);
.exec(Queries.queryPostFindAllAssets);
.repeat(10).on(
CoreDsl.exec(Queries.queryPostFindAssetById)
.exec(Queries.queryPostFindAccountById)
.exec(Queries.queryPostFindAssetQuantityById)
);


public static ScenarioBuilder generalQueries = scenario("general queries")
.feed(csv("preconditionList.csv").circular())
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/simulation/PerformanceSimulation.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

public class PerformanceSimulation extends Simulation {
{
setUp(findAssetByIdClientMode.injectOpen(LoadProfile.getMaxPerformance()).protocols(httpProtocol)).maxDuration(Long.parseLong(System.getProperty("maxDuration")));
setUp(generalLiteQueries.injectOpen(LoadProfile.getMaxPerformanceOpenProfile()).protocols(httpProtocol)).maxDuration(Long.parseLong(System.getProperty("maxDuration")));
}
}

0 comments on commit 94b7855

Please sign in to comment.