Skip to main content

Method for Black Box and White Box Tests

Testing Internet applicationsservices for scalability and performance is differentdiffers from testing individual software applicationscomponents andor application code. SOAService performance testing is focusedfocuses on understanding how a service respondsbehaves toas increasingthe levelsworkload ofincreases, including changes in concurrent requests, message sizes, message complexity, and response handlinghandling.

techniques.

The natureAppvance methodology combines black-box and white-box testing. Black-box testing establishes how the service performs from the perspective of Internetits applicationsconsumer, testingwhile iswhite-box techniques can then be used to identify the internal operations responsible for performance bottlenecks.

  1. Establish a baseline using black-box testing; it doesn't matter what happens inside the box.

    Code profilers have their place in testing software and software developers often rely on them to learn the location of performance problems. However, black-box testing often yields more actionable knowledge, with these recommendations:

    1. testing.


    Create a baseline performance metricmetric, (aor Scalability Index)Index, usingby black-box performance tests showingmeasuring Transaction Per Second (TPS) results, measured at the service consumer,consumer. withTest athe varietyservice ofusing different message sizes, message schema complexities, and levels of concurrent request levels requests.

    Compare performanceCalibrate and scalabilitycompare betweenthe test environment.
    When comparing multiple servers, consumers, brokers, or brokersother byservice identifyingconfigurations, identify the Performance Index for each server'sconfiguration. Performance Index and normalizingNormalize the test parameters toand avoidenvironment reportingso falsethat slow-differences in infrastructure or workload do not produce misleading performance results. TheThis testcalibration isensures runthat properlysubsequent oncecomparisons theare testmeaningful.

    Identify labinternal hasperformance beenbottlenecks.
    After calibrated in this Calibration step

    Determineestablishing the Performance Index of the service under test andIndex, use white-box testingtechniques techniquessuch as code profiling to profileidentify the largestoperations that consume the most processing time expensivewhen objecthandling operationsrequests. Use this information to handledetermine requests.where Optimizeoptimization can provide the softwaregreatest basedperformance onimprovement.

    Optimize and repeat the profile

    Continue optimizingmeasurements.
    Apply the serviceidentified by repeating steps 2optimizations and 3

    repeat the performance tests. Compare the new Performance Index with the previous baseline to determine whether the changes improved scalability or performance.Validate the

    final performance.


    Run the Performance Index again under the calibrated test conditions and analyze the resultsresults. The final measurements provide an objective basis for evaluating the effectiveness of the optimizations and the scalability of the service.

    This iscombination of black-box performance measurements and targeted white-box analysis provides the basis for understanding the Appvance methodmethodology offor testing services for scalability and performanceperformance.


    Last updated: FebruaryAugust 22,12, 20232026

    If you have any feedback onabout this topic, please contact us at documentation@appvance.ai.