Create Triggers¶
Introduction¶
TrueWatch supports you to create trigger tasks via User Analysis, enabling real-time monitoring of custom-defined chain tracing paths. By pre-setting chain tracing paths, you can filter chain data centrally and accurately query user experience, promptly identifying vulnerabilities, anomalies, and risks.
Application Support¶
The trigger function currently only supports the introduction of Web, Android, and iOS applications.
Create Trigger¶
In the TrueWatch workspace's User Analysis, click on the application name to enter the specified application, and then create a trace path through Triggers.
When performing Create Triggers, you need to set the name and fields, and after generating the trigger ID, complete the configuration integration.
Field | Description |
---|---|
Trigger Name | The name of the current trigger task. Supports mixed writing in Chinese and English, supports underscores as separators, does not support other special characters, and supports up to 64 strings. |
Tags | Defines chain tracing fields. Supports selecting tags (key:value) under the current application (app_id) from a dropdown box, and supports multiple selections. |
Trigger ID | A system-generated unique trigger ID identifier that supports one-click copying by users. |
Integration Method | After generating the trigger ID, you need to integrate code in the application based on the trigger ID information. |
Manage Trigger Tasks¶
After creating a trigger task, it is enabled by default. You can view performance data under the specified trigger ID in the Session Explorer of the current application; you can also view the data generated by the trigger by clicking the trigger name. At the same time, you can view or delete the trigger task.
Automated Tracing¶
TrueWatch supports implementing browser plugins to record user access behavior using browsers, thereby creating codeless end-to-end tests.
Steps Description¶
Step One: Download Browser Plugin¶
-
If you have already integrated a Web application, you can directly download and install the browser plugin.
-
If you haven't started using TrueWatch yet, you can first complete the following steps:
- Install DataKit;
- Enable User Analysis Collector;
- Integrate Web Applications.
Step Two: Install Plugin¶
- After downloading the plugin, visit
chrome://extensions/
via your browser;
Note: Automated tracing currently supports Chrome and Edge browsers.
-
Enable Developer Mode;
-
Unzip the downloaded browser plugin guance-rum-plugin.zip;
-
Click Load unpacked extension;
-
Select the unzipped folder.
Step Three: Use Plugin¶
- In the top-right corner, click the Extensions icon, find TrueWatch Cloud Plugin, and open the plugin;
-
Upon activation, a trigger ID will be generated.
-
Click Activate to use the current trigger ID;
- Click to generate a new trigger ID;
- Click icon to view the history of generated trigger IDs;
- Click Language icon to check the current language or switch languages;
- Click icon to view help documentation.
Step Four: Filter and View Data in TrueWatch¶
In the User Analysis application list, select the integrated Web application, and you can filter and view user access data using the trigger ID (track_id
) generated by the plugin.