APP-REST-RestTestSuite
view release on metacpan or search on metacpan
script/rest-client view on Meta::CPAN
154155156157158159160161162163164165166167168169170171172173174my
%test_cases
=
$suite
->get_test_cases();
#increase the count to load your API $load times with the number of TC
my
$tc_in_config
=
scalar
keys
%test_cases
;
my
$load
=
$action
->{testload};
#$load = floor(500 / $tc_in_config);
my
%load_test_cases
;
#If config file has 10 test cases, formula for $tc_count is 10*$load
my
$total_tc
= 0;
while
(
$load
> 0 ) {
foreach
my
$num
(
sort
{
$a
<=>
$b
}
keys
(
%test_cases
) ) {
my
$tc
=
$test_cases
{
$num
};
$total_tc
++;
$load_test_cases
{
$total_tc
} =
$tc
;
}
$load
--;
( run in 0.230 second using v1.01-cache-2.11-cpan-ec4f86ec37b )