On 15/11/2007, sijay reddy <[EMAIL PROTECTED]> wrote:
> Hi all i have a doubt regarding functions ...
>
> how to use functions... Please once go through this and give me suggestion
> how solve this problem

http://jakarta.apache.org/jmeter/usermanual/functions.html

> first i will explain the scenario...If we want to add the fund to the form
> we need to select the fund symbol After selecting tech symbol we need to
> display the fields " symbol,name,category,current price,7day%" in the form
> for that we are selecting the SYMBOL from the drop down list...
>
> after submitting that symbol based on that symbol application is retrieving
> the "name,category,current price and 7day price" from the database
>
> and calculating the 7day% by using current price and 7day price based on the
> formula 7day%=(current price-7day price/current price)... and displaying all
> the values which are listed...
>
> So what am asking is i want to add the symbol by using jmeter by passing the
> fund symbol through CSV file...
>
> I recorded the application by using proxy...and added the csv file with all
> the data(symbol,name,category,current price,7day%) and run the
> application...That fund symbol is added to the application ...but now what
> am asking is i dont want to pass all the data ...

No idea.

> --->1)just i want to give fund symbol,name,category,current price and 7day
> price values in CSV file and based on these i want to calculate 7day %
> dynamically by using jmeter and display those values in the form...how to
> calculate the 7day% which function can i use to calculate... can i use the
> formula directly with out any functions like ${currnt price}-${7day
> price}/${current price}

A string like

${currnt price}-${7dayprice}/${current price}

will be interpreted as a string, e.g. it might look like:

100-101/100

You can use the JavaScript or Jexl functions to do calculations.
For example:

${__jexl(${currnt price}-${7dayprice}/${current price})}

> --->2)is it possible to retrieve all the data fields from the data base
> based on the fund symbol and calculating and displaying the 7day % and the
> fields which are retrieved from the database...

No idea.

> Please clarify my doubt..............
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to