I am new to Jmeter and I am trying to use Regular Expression Extractor to extract a single value from XML response of one of the HTTP requests. I am aware of the expression I need to use to extract the value but I don't have an idea of how to escape or ignore or include the new line. Below is the small part of my XML response and regular expression extractor that I am using to extract the value between "name" child/sub node:
<com.mfs.model.connector.ConnectorBrowseInfo>
<type>css</type>
<name>Cascading Style Server</name>
<typeGroup>css</typeGroup>
Regular Expression Extractor configuration:
Name of created variable: connectorNameVar
Regular Expression Extractor: <com\.msf\.model\.connector\.ConnectorBrowseInfo>\n <type>(.*?)<\/type>\n <name>(.*?)<\/name>\n
Template: $2$
Match No.: 0
Default Value: NotFound
This expression return "NotFound" value instead of taking the value 'Cascading Style Server" Can anyone please help me figure out what I need to add or remove or change in my expression?
Acceptance Criteria: The name needs to be extracted from '<com.mfs.model.connector.ConnectorBrowseInfo>'
this node.
<com.mfs.model.connector.ConnectorBrowseInfo>
which is the node you specified in your question not this one<com.msf.model.platform.common.Container>
. – ararar