static void constructAvgTransactionGraph ( Map . Entry < String , LrProjectScenarioResults > scenarioResults , JSONObject scenarioGraphData ) { Map < Integer , TreeMap < String , AvgTransactionResponseTime > > avgTransactionResponseTimeResults = scenarioResults . getValue ( ) . getAvgTransactionResponseTimeResults ( ) ; JSONObject avgTransactionResponseTimeGraphSet = extractAvgTrtData ( avgTransactionResponseTimeResults , scenarioResults . getValue ( ) . getTransactions ( ) ) ; if ( ! avgTransactionResponseTimeGraphSet . getJSONArray ( LABELS ) . isEmpty ( ) ) { avgTransactionResponseTimeGraphSet . put ( TITLE , "Average Transaction Response TIme" ) ; avgTransactionResponseTimeGraphSet . put ( X_AXIS_TITLE , "Build number" ) ; avgTransactionResponseTimeGraphSet . put ( Y_AXIS_TITLE , "Time (Sec.)" ) ; avgTransactionResponseTimeGraphSet . put ( DESCRIPTION , "Displays the average time taken to perform transactions during each second of the load test." + " This graph helps you determine whether the performance of the server is within " + "acceptable minimum and maximum transaction performance time ranges defined for your " + "system." ) ; scenarioGraphData . put ( "averageTransactionResponseTime" , avgTransactionResponseTimeGraphSet ) ; } }
Construct avg transaction graph .