on 07-03-2013 10:22 AM
Hi Experts,
I need the output of the following URL in the form of XML in BLS.
http://<server>:<port>/XMII/Runner?Transaction=<Project>/<Path>/<Name>&LogStatisticsToDB=true
The above URL is to see the actual execution time for each action block in a transaction.
Is there any action block which can help doing this ?
Any one please suggest a way.
Thanks
Shanky
Hi Shashank,
I do not think there is a action block to see the results. Certain things you would need to know about logging. The URL mentioned in your post would only enable the logging. Inorder to view the statistic results, you should use http://localhost:50000/XMII/Illuminator?service=BLSManager&mode=stats&id=<Transaction ID>&content-type=text/xml .The transaction id is got from the transaction manager screen.
If you want this result in a transaction, you could use HTTPPost/TextLoader/XMLLoader action block.
1. Use the XMLLoader/HTTPPost action block to call a transaction with logging switched on.
http://<server>:<port>/XMII/Runner?Transaction=<Project>/<Path>/<Name>&LogStatisticsToDB=true
&content-type=text/xml
2. From the XML output of the action block, pick the transaction ID .
3. Pass this transaction Id in this URL, http://<server>:<port>/XMII/Illuminator?service=BLSManager&Mode=Stats&ID=<TRXID>&content-type=text/xml . This url can be an input to an XML/Text Loader or a HTTPPost action block.
4. The output of this block would give you the statistics of the transaction,
Check Examples: Transaction Services - SAP Documentation for details on logging and statistics.
Regards
Tufale Ashai.
Message was edited by: Tufale Ashai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shashank,
You would need two transactions for this. 1. TransactionUnderTest 2.ObserverTransaction, This is because the monitoring can only be done when the transaction is executed through "Runner" servlet. Hence, a web/URL call becomes mandatory.
The transactionUnderTest is the one you would be monitoring. While, the ObserverTransaction would run your transaction and get the statistics.
1. In the ObserverTransaction, Use the HTTPPost action block to call a transactionUnderTest with logging switched on.
http://<server>:<port>/XMII/Runner?Transaction=<Project>/<Path>/<transactionUnderTest>&LogStatisticsToDB=true
&content-type=text/xml
2. From the XML output of the action block, pick the transaction ID. This could be done by picking the transaction id from the XML response.
The HTTPPost has an output param, ReturnAsXML. Create a transaction property of type XML, call it "InXML" and map it to it.
The transaction property "InXML" will have the returned XML now. Next, assign trasaction Id . Create a transaction property of type string. Call it "Id". Map the XML attribute TransactionID to "Id". Example,
Transaction.InXML{/Rowsets/@TransactionID} .
This step (step 2) has to be done in an assignment action block.
3. Pass this transaction Id in this URL, http://<server>:<port>/XMII/Illuminator?service=BLSManager&Mode=Stats&ID="&Transaction.Id&"&content-type=text/xml . This url can be an input to an HTTPPost action block.
4. The output of this block would give you the statistics of the transaction,
Additional Info:
The first HTTPPost action block will return an XML like,
<?xml version="1.0" encoding="UTF-8" ?>
<Rowsets DateCreated="2013-07-04T10:02:23" EndDate="2013-07-04T10:02:23" StartDate="2013-07-04T10:02:23" Version="15.0.0 Build(258)" TransactionID="311">
<Messages>
<Message>TRANSACTION EXECUTED OK</Message>
</Messages>
</Rowsets>
When you create a transaction property of type XML to map the first output, use the above XML as default value.
Your observer transaction now, would look like
Regards
Tufale Ashai
Message was edited by: Tufale Ashai
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.