You are here[LoadRunner Yahoo Group] Code help needed

[LoadRunner Yahoo Group] Code help needed


The following question was posted on The LoadRunner Yahoo Group March 1, 2010. The original message may be accessed at http://tech.groups.yahoo.com/group/LoadRunner/message/31059 .

Posting Analysis

Can someone please help i need to write a custom code required to handle either
of those customers

Customer #1:
web_submit_data('Place_Order',
'Action=https://www.test.com/test/order_submit',
'Method=POST',
'RecContentType=text/html',
'Referer=https://www.test.com/test/order',
'Snapshot=t2.inf',
'Mode=HTML',
ITEMDATA,
'Name=field1_0', 'Value=test_val1', ENDITEM,
'Name=field2_0', 'Value=test_val2', ENDITEM,
'Name=field3_0', 'Value=test_val3', ENDITEM,
LAST);

Customer #2:

web_submit_data('Place_Order',
'Action=https://www.test.com/test/order_submit',
'Method=POST',
'RecContentType=text/html',
'Referer=https://www.test.com/test/order',
'Snapshot=t2.inf',
'Mode=HTML',
ITEMDATA,
'Name=field1_0', 'Value=test_val1', ENDITEM,
'Name=field2_0', 'Value=test_val2', ENDITEM,
'Name=field3_0', 'Value=test_val3', ENDITEM,
'Name=field1_1', 'Value=test_val4', ENDITEM,
'Name=field2_1', 'Value=test_val5', ENDITEM,
'Name=field3_1', 'Value=test_val6', ENDITEM,
'Name=field1_2', 'Value=test_val7', ENDITEM,
'Name=field2_2', 'Value=test_val8', ENDITEM,
'Name=field3_2', 'Value=test_val9', ENDITEM,
LAST);

Business Impact
  • This person has not successfully completed Product Training
  • This person will take five to ten times as long to complete basic tasks
  • What should take one hour will instead take five to ten
  • Script quality will be lower than with a trained and mentored individual
Technical Issue
  • Common issue, variable length forms require the use of web_custom_request()
  • user will need 'C' language string manipulation and looping knowledge to build a custom length name|value pair solution
  • Correlation skills will be required for the collection of the existing name|value pair structure