[comment]
ui_template: Yes
ui_template_name: noleft
[/comment]
[tmp page_title]__COMPANY__ -- [L]Place one-click test order[/L][/tmp]
@_NOLEFT_TOP_@
[calc]$Config->{NoSearch} = '';[/calc]
[query list=1 sql="select username,password from userdb" random=1]
[tmp tmp_uname][sql-code][/tmp]
[tmp tmp_upass][sql-param password][/tmp]
[/query]
[tmp itemstuff]
[loop random=5
search="
ra=yes
st=db
fi=products
"][loop-calc]
$todo = int( rand(6) ) || 1 if ! defined $todo;
return if ++$done > $todo;
my $quan = int rand(10) || 1;
return qq{
mv_order_quantity=$quan
mv_order_item=[loop-code]
};
[/loop-calc][/loop]
[/tmp]
[L]Will one-click order these random items[/L]:
user: [scratch tmp_uname]
[scratch itemstuff]
[page
form=|
mv_username=[scratch tmp_uname]
mv_password=[scratch tmp_upass]
mv_click=Login
mv_action=submit
mv_order_profile=credit_card
mv_shipmode=PERD
mv_credit_card_number=4111 1111 1111 1111
[time adjust="5 weeks"]
mv_credit_card_exp_year=%y
mv_credit_card_exp_month=%m
[/time]
[scratch itemstuff]
|][L]Order this[/L]
@_NOLEFT_BOTTOM_@