question

vani avatar image
vani asked vani posted

Not able to store transactionIdentifier value in a variable

Hi, I have a test in which the log file is being generated in this format:

  

TimeStamp #Latency #MethodName #StatusMessage #Input #Output

 

04:02:2010:09:48:07:708#275#applyQoSFeature#Success#{ParameterSetList={Duration=5}, qoSFeatureIdentifier=Downstream QoS_

200k, serviceIdentifier=BBEU000000000000000000000000000032814043, serviceProviderIdentifier=O/M77778888, TransactionIden

tifier=TRID_000001}#{parameterSetList={DurationAllocated=5,OvershootFlag=false}, sessionIdentifier=010213075125%BBEU0000

00000000000000000000000032814043@O/M77778888#Q7$12652768847332399293-SRB_2, transactionIdentifier=E7C73288-04E1-1C7B-E47

B-53DFEC6D1DCF}

 

As you can see there are new lines in between. I want to store the value of the parameters sessionIdentifier and transactionIdentifier in a variable.

 

I am able to store the value of sessionIdentifier using the regex: sessionIdentifier=(.*),

but when I use the regex: transactionIdentifier=(.*)} to store the value of transactionIdentifier it gives an error in execution that <none> is stored in the variable.

I am not very good in using regular expression so can someone please correct me if I am using the wrong one.

 

iTest
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
ramarb avatar image
ramarb answered ramarb posted

Your RE works fine. By any chance you made changes at RE 'Extractor Properties'? 

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vani avatar image vani commented ·

Thanks for pointing that out.

"Use line mode" was checked in the transactionIdentifier RE. It works correctly after unchecking it.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.