Re: Get max or min Value of a Variable or Regular Expression

2011-09-21 Thread dino7777
sebb-2-2 this make perfect sense. I have searched all test steps in tree view in all possible ways but there seems not to be any value of id. I find id e.g. as type hidden; name id; value // in the test steps. any hint where I can search and find the value. the browser must be getting the

Re: Get max or min Value of a Variable or Regular Expression

2011-09-21 Thread dino7777
THX @ALL the problem is solved. All I had to do was to add s* HTTP URL Re-writing Modifier and set its Session Argument to id* no regEx needed anymore,...works great now -- View this message in context:

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread dino7777
Thx for this suggestion. First I will describe the problem a little more detailed. I am testing a web application that creates new records for some db tables. When I create a new record, i.e. fill in all needed data and click save, a new tuple is created and this is reflected in the URL. After I

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread sebb
On 20 September 2011 08:37, dino past...@gmail.com wrote: Thx for this suggestion. First I will describe the problem a little more detailed. I am testing a web application that creates new records for some db tables. When I create a new record, i.e. fill in all needed data and click save,

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread dino7777
Yes sure I have tried RegEx to captcher URL The prob is when I click save (no id need till here) I get a new URL that contains the ID I have set RegEx to read out ID before, as child, ... but nothing. *The key problem is this: when I click save it seems as instanly a new URL is generated and

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread sebb
On 20 September 2011 11:29, dino past...@gmail.com wrote: Yes sure I have tried RegEx to captcher URL The prob is when I click save (no id need till here) I get a new URL that contains the ID What do you mean by that? How is the URL communicated to you?

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread dino7777
See my previous post please. As mentioned: two http request are generated after clicking safe, and the second one needs id as parameter. I tried to read it out, but no success right now. -- View this message in context:

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread ZK
Do you have success with the RegEx capturing the id(s) ? After you send your 1st request can you use the Regular Expression Extractor to extract the total number of matches found? Like this: RegEx extractor: Reference Name: FirstID Regular Expression: id=(\d+) Template: $1$ Match No: -1 Default

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread sebb
On 20 September 2011 11:38, dino past...@gmail.com wrote: See my previous post please. Yes, I read it, but it's not clear. As mentioned: two http request are generated after clicking safe, and the second one needs id as parameter. What generates the requests? Or do you mean responses?

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread dino7777
thx all, this dmd id make me angry. reading the max id from a table view may not be the best possible solution. take that e.g. records 101 and 100 have been deleted. table view would show 99 as max id. generating a new record with id 99+1=100 would result in an error, as this (PK) id is already

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread dino7777
@sebb-2-2 I'll try to describe the problem more detailed. I record the test steps by starting a http proxy. When I generate a new record, i.e. fill out all needed data and proceed with safe, following two http request are recorded 1. http request get on side .../new.htm parameters are all

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread dino7777
Hi kingrythm, tried your expression, but no luck. I do not see the prob in the regEx. Please see my previous post. I need an ID that is (automatically) posted after saving a record. But I do not see any way to read this value out. Please see my previuos post. It describes what test steps are

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread dino7777
thx kingrythm, but I don't get u? could u please read my post from 1:31pm I guess this describes my problem could u please explain no 5 too correlated the dynamic values... -- View this message in context:

Re: Get max or min Value of a Variable or Regular Expression

2011-09-20 Thread sebb
On 20 September 2011 12:31, dino past...@gmail.com wrote: @sebb-2-2 I'll try to describe the problem more detailed. I record the test steps by starting a http proxy. When I generate a new record, i.e. fill out all needed data and proceed with safe, following two http request are

Re: Get max or min Value of a Variable or Regular Expression

2011-09-19 Thread Deepak Shetty
hi if there is nothing in the response that tells you the maximum then you have to select all matches(match no -1) and do it in beanshell or bsf (should be possible in XPATH). But you might be missing something as well - when your application is accessed by a normal user with the browser, what