jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nithya Prakash <nithyaprakas...@gmail.com>
Subject Require help in Regular Expression!!!
Date Thu, 24 May 2012 15:54:55 GMT
Hi,

I want to fetch few things using regular expression but unable to get the
parameters.

*While i capture the action using HTTP proxy i get the parameter as *

{'partId':'542024','partNumber':'SRW224G4P-K9-AU','productPart':'SRW224G4P-K9-AU','validationStatus':'not
validated'},{'partId':'542027','partNumber':'UC560-T1E1-K9','productPart':'UC560-T1E1-K9','validationStatus':'not
validated'},{'partId':'542028','partNumber':'CP-7925G-W-K9','productPart':'CP-7925G-W-K9','validationStatus':'not
validated'},{'partId':'542029','partNumber':'CP-7962G=','productPart':'CP-7962G=','validationStatus':'not
validated'}

*When i take the HTML page of this to capture the expression *

[{"equipmentPart":{"allAttributes":{"compositePartName":"SRW224G4P-K9-AU
","equipmentPartPhysicalSiteId":"73411","equipmentPartSiteId":73414,"equipmentPartId":
542024,"productPartName":"SRW224G4P-K9-AU","equipmentPartName":"SRW224G4P-K9-AU"}},"updatedTimeStamp":1337838775000,"solutionEntityId":542227,"solutionId":13959179,"status":"validation
ok","id":95509,"createdTimeStamp":1337838666000,"messages":", Non
Configurable"},{"equipmentPart":{"allAttributes":{"compositePartName":"
UC560-T1E1-K9
","equipmentPartPhysicalSiteId":"73411","equipmentPartSiteId":73412,"equipmentPartId"
:542027,"productPartName":"UC560-T1E1-K9","equipmentPartName":"UC560-T1E1-K9"}},"updatedTimeStamp":1337838775000,"solutionEntityId":542230,"solutionId":13959179,"status":"validation
ok","id":95510,"createdTimeStamp":1337838666000,"messages":", Non
Configurable"}]

Now i need to to capture the 'equipmentPartId: 542024' and
'compositePartName: SRW224G4P-K9-AU from the HTML page. Similarly there are
10 more expressions of the same manner.

What regular expression to be used to fetch the id and and the part name
and replace in http request ??


Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message