jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Modha Khammammettu" <MKhammamme...@calcas.com>
Subject HTTPSampler name attribute Question
Date Fri, 23 Nov 2007 00:37:10 GMT


Sent to dev list by mistake....

> Hi
> 
> I am looking at HTTPSampler elementProp 
> 
> <elementProp name="" elementType="HTTPArgument">
>                 <boolProp
> name="HTTPArgument.always_encode">false</boolProp>
>                 <stringProp name="Argument.name">password</stringProp>
>                 <stringProp name="Argument.value">pass</stringProp>
>                 <stringProp name="Argument.metadata">=</stringProp>
>                 <boolProp
> name="HTTPArgument.use_equals">true</boolProp>
>               </elementProp>
> 
> And specifically the lines:
> 
> <stringProp name="Argument.name">password</stringProp>
> <stringProp name="Argument.value">pass</stringProp>
> 
> Looks like Jmeter uses name attribute of a html element to identify a
> particular element on a page and then sends the name value pairs when
> submitted..
> 
> Can it identify element based on my custom attribute, and then send
> name value pairs.
> 
> I am looking at something like:
> <stringProp name="Argument.customattrib">mycustomattrib</stringProp>
> ----Figure out argument value for name
> <stringProp name="Argument.value">pass</stringProp>
> Then pass name value pairs.
> 
> My html element looks like   <input id="dynamically_changing_value"
> name="dynamically_changing_value" customeattrib="fixed".....>
> I want to be able to identify element based on customattrib, figure
> out what is in the name and then send that name value pair.
> 
> Please let me know if we can do this.
> 
> Thanks
> Modha/-
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message