In the previous blog post we know how to analyze the mobile services network trace har file using SAP Mobile Services Mobile Backend Tools, actually you can record the network trace using mobile backend tools directly. In this blog post, we will demonstrate how to record the network trace for mobile services using mobile backend tools.
First, login to your mobile services cockpit and ensure that feature “Mobile Network Trace” has been assigned to you mobile app:
Click the “Mobile Network Trace” feature, you will see the network trace histories inside the network trace view:
As you can see, there are already 2 network trace records for this mobile app. Let’s take a look how to view the network trace records in mobile backend tools.
First install SAP Mobile Services Mobile Backend Tools from VSCODE marketplace, and the follow the instructions to add the mobile service landscape to mobile backend tool from this blog post. Under the mobile app, open the “Network Traces” node:
Locate the network trace record you want to view and click “Download Network Trace” icon:
after the network trace record is downloaded, you should be able to view the content from the network trace analyzer:
And you can start recording the network trace from mobile backend tools directly without going to the mobile services cockpit. In order to do that, click the “Start Record Network Trace” icon in the Network Trace node:
You will see below the network trace recording UI:
If you want to include the payload in the network trace record, select “Header and Body” in the log message options and click “Start Recording” button:
Run you mobile app and perform the necessary requests to the server, and then click “Stop Recording” button on the UI:
Now you should be able to see the newly generated network trace record. Download the record and you should be able to view its content:
As a summary, in this blog post we demonstrated how to record the mobile services network trace using SAP Mobile Services Mobile Backend Tools. In addition to using the mobile services cockpit, you can record and view the network trace inside the Visual Studio Code environment without having to use third party tools.
In the previous blog post we know how to analyze the mobile services network trace har file using SAP Mobile Services Mobile Backend Tools, actually you can record the network trace using mobile backend tools directly. In this blog post, we will demonstrate how to record the network trace for mobile services using mobile backend tools.First, login to your mobile services cockpit and ensure that feature “Mobile Network Trace” has been assigned to you mobile app:Click the “Mobile Network Trace” feature, you will see the network trace histories inside the network trace view:As you can see, there are already 2 network trace records for this mobile app. Let’s take a look how to view the network trace records in mobile backend tools. First install SAP Mobile Services Mobile Backend Tools from VSCODE marketplace, and the follow the instructions to add the mobile service landscape to mobile backend tool from this blog post. Under the mobile app, open the “Network Traces” node:Locate the network trace record you want to view and click “Download Network Trace” icon:after the network trace record is downloaded, you should be able to view the content from the network trace analyzer:And you can start recording the network trace from mobile backend tools directly without going to the mobile services cockpit. In order to do that, click the “Start Record Network Trace” icon in the Network Trace node:You will see below the network trace recording UI:If you want to include the payload in the network trace record, select “Header and Body” in the log message options and click “Start Recording” button:Run you mobile app and perform the necessary requests to the server, and then click “Stop Recording” button on the UI:Now you should be able to see the newly generated network trace record. Download the record and you should be able to view its content:As a summary, in this blog post we demonstrated how to record the mobile services network trace using SAP Mobile Services Mobile Backend Tools. In addition to using the mobile services cockpit, you can record and view the network trace inside the Visual Studio Code environment without having to use third party tools. Read More Technology Blogs by SAP articles
#SAP
#SAPTechnologyblog
+ There are no comments
Add yours