Forum Discussion
AlexeyKryuchkov
13 years agoSmartBear Alumni (Retired)
Hi Suresh,
I'd accomplish this by defining another data selector. For example, if I need to extract the first two characters from the value of the __VIEWSTATE parameter, I will use the following regular expression and mask:
Actually, this is a slight modification of the regular expression that is used to extract the whole value of the __VIEWSTATE parameter. Here's the original expression and mask:
Currently, there's no way to do this. If you share a use case, we could consider this as an improvement idea.
I have parameter A which is populated by extracting data from a previous Response.
I now want to create parameter B which will contain a substring of parameter A and use this in next Request.
Is this possible and how do we do this?
I'd accomplish this by defining another data selector. For example, if I need to extract the first two characters from the value of the __VIEWSTATE parameter, I will use the following regular expression and mask:
\sname\s*?\=\s*?"__VIEWSTATE"[^^]*?\svalue\s*?\=\s*?"((.{2}).*?)"[^^]*?>
$2
Actually, this is a slight modification of the regular expression that is used to extract the whole value of the __VIEWSTATE parameter. Here's the original expression and mask:
\sname\s*?\=\s*?"__VIEWSTATE"[^^]*?\svalue\s*?\=\s*?"(.*?)"[^^]*?>
$1
Additionally, is it possible to output the values of captured variables into a text file?
How does one do that?
Currently, there's no way to do this. If you share a use case, we could consider this as an improvement idea.
Related Content
- 10 years ago
Recent Discussions
- 3 years ago
- 3 years ago
- 4 years ago