JS Errors Test
In native and hybrid mobile frameworks, the application's core logic, UI behavior, and data handling are heavily governed by JavaScript. When JavaScript errors slip into production, they directly degrade the User Experience (UX) and severely hurt business metrics.
To avoid this, app developers should be able to capture and eliminate JavaScript errors at the staging/testing stage itself. For this purpose, app developers should periodically run the JS Errors test.
This test scans each page/activity of the target app for JS errors, and instantly notifies app developers/administrators upon sighting such errors. Detailed diagnostics reveal the complete error message, while also pointing to the function call that threw the error and the line of code at which the error occurred. This helps app developers troubleshoot the error condition rapidly, thus readying the app for a confident production roll-out and assuring users of an above-par, error-free experience with the app at all times.
Agent deploying the test : A remote agent
Outputs of the test : One set of results for each mobile platform on which the target app runs
| Parameter | Description |
|
Test period |
How often should the test be executed. |
|
Proxy Host |
If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the IP address/fully-qualified host name of the proxy server here. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy. |
|
Proxy Port |
If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the port at which the proxy server listens for requests from the eG agent. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy. |
|
Proxy Username and Proxy Password |
If the eG agent communicates with the Mobile RUM collector via a proxy server, and if proxy server requires authentication, then specify valid credentials for authentication against Proxy Username and Proxy Password. If no proxy server is used or if the proxy server used does not require authentication, then set the ProxyUsername and ProxyPassword to none. |
|
Confirm Password |
Confirm the Proxy Password by retyping it here. Note: If you Reconfigure the test later to change the values of the Proxy Username, Proxy Password, Confirm Password parameters, then such changes will be effected only if the eG remote agent monitoring the Mobile RUM component is restarted. |
|
DD Frequency |
Refers to the freqthe uency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency. |
|
Detailed Diagnosis |
To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option. The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:
|
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
JavaScript error page views |
Indicates the number of pages in the target app where JS errors were encountered. |
Number |
A non-zero value for this measure is a cause for concern. In this case, use the detailed diagnosis of the measure to know what the error is and where it occurred. |
|
JavaScript error page view percentage |
Indicates the percentage of pages in the target app where JS errors were detected. |
Percent |
Ideally, a low value is desired for this measure. A high value is a cause for concern. In such a situation, you can use the detailed diagnosis of the JavaScript error page views measure to know what the errors are and where they occurred. |
The detailed diagnosis of the JavaScript error page views measure reveals the exact errors that were captured, the function call that threw the error, and the line of code at which the error occurred. This helps administrators to rapidly troubleshoot the errors.
Figure 1 : The detailed diagnosis of the JavaScript error page views measure