Jump to content


Using Search function in variable returns Blank


  • Please log in to reply
4 replies to this topic

#1 Guest_deepak_*

Guest_deepak_*
  • Guests

Posted 09 May 2008 - 10:47 AM

Hi All,
Please help me .
I am using function search to find a parameter value from the HTML code of current page. But it returns me blank when i use it on other pages following it.
All other functions like static text, random number etc works fine.
But all functions related to HTML parsing return blank values.


Regards,
Deepak

#2 Guest_angela_*

Guest_angela_*
  • Guests

Posted 13 May 2008 - 09:50 AM

QUOTE (deepak @ May 9 2008, 05:47 PM) <{POST_SNAPBACK}>
Hi All,
Please help me .
I am using function search to find a parameter value from the HTML code of current page. But it returns me blank when i use it on other pages following it.
All other functions like static text, random number etc works fine.
But all functions related to HTML parsing return blank values.


Regards,
Deepak


Hi Deepak,

The function performs search on the next pages according to search criteria. Possibly the parameter you are searching for just cannot be found, and that's why you get nothing.
Please check if in the code of the corresponding pages there is the required parameter. If yes, how it uses the obtained value.


#3 Guest_deepak_*

Guest_deepak_*
  • Guests

Posted 14 May 2008 - 01:37 PM

QUOTE (angela @ May 13 2008, 10:50 AM) <{POST_SNAPBACK}>
Hi Deepak,

The function performs search on the next pages according to search criteria. Possibly the parameter you are searching for just cannot be found, and that's why you get nothing.
Please check if in the code of the corresponding pages there is the required parameter. If yes, how it uses the obtained value.



Thanks for replying

I have defined a parameter in Settings option name Param with a left anf right boundary.

/include/chart.jsp?chartName=CellarRegionBreakdownPieChart&cellarId=$Var(Param1)

Here, Param1 is defined and replaced by WAPT only in the urls while recording. Originally, 997 was in its place.
But running it , it does not fetch this value it shows blank in the logs in Post request.
I am not able to sort out this problem.


#4 Guest_angela_*

Guest_angela_*
  • Guests

Posted 16 May 2008 - 12:25 PM

QUOTE (deepak @ May 14 2008, 08:37 PM) <{POST_SNAPBACK}>
Thanks for replying

I have defined a parameter in Settings option name Param with a left anf right boundary.

/include/chart.jsp?chartName=CellarRegionBreakdownPieChart&cellarId=$Var(Param1)

Here, Param1 is defined and replaced by WAPT only in the urls while recording. Originally, 997 was in its place.
But running it , it does not fetch this value it shows blank in the logs in Post request.
I am not able to sort out this problem.


Hi Deepak

Param1 in settings is a sample parameter name, and actually the found values will appear in the list of available variables (Variables) at the request page with the names Param11, Param12 etc.

You can use the value of the variable only in the next request, right after the request where this value was found. If you use this variable in the same request, the value will be blank.

Possibly the problem due to this, and possibly due to a wrong variable name.


#5 Guest_deepak_*

Guest_deepak_*
  • Guests

Posted 19 May 2008 - 07:13 AM

QUOTE (angela @ May 16 2008, 12:25 PM) <{POST_SNAPBACK}>
Hi Deepak

Param1 in settings is a sample parameter name, and actually the found values will appear in the list of available variables (Variables) at the request page with the names Param11, Param12 etc.

You can use the value of the variable only in the next request, right after the request where this value was found. If you use this variable in the same request, the value will be blank.

Possibly the problem due to this, and possibly due to a wrong variable name.



Hi Angela,

Thanks for replying again.

The problem was that in User Agent WAPT 5.0 was selected.
I selected IE 6.0 instead of that and everything worked fine.
Browser view was also not coming coz of this.
We are very happy with the product and hope to buy it after client approval.
I think this should be kept upfront in profile settings.
One little thing here also, can we deal with dynamic parameter names also like vintgae2667463.
It would be gud if regular expression could be used in next version for such problems.


Thanks and regards,
Deepak




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users