| Parameter name | Required | Default value | Description |
|---|---|---|---|
cml | no | built-in defaults | VPN client executable file path, default C:\Program Files (x86)\Sangfor\SSL\EasyConnect\EasyConnect.exe |
host | yes | null | VPN service address |
username | no | null | Login username |
password | no | null | Login password |
autoLogin | no | 0 | Whether to log in automatically. Fully automatic at 1 hour, semi-automatic at 0 hour (manual cooperation required) |
timeout | no | 60 | The total timeout of the task, in seconds |
| Parameter name | Description |
|---|---|
waitServer | The maximum number of rounds to wait for the server window, default 20 |
MainWindow | Server window class name |
EasyConnect | Server window title name |
serverUrlPos | Server address input box coordinates, format XxY |
dlgWindow_1 | Login window class name |
setHost | Whether to enter the login address |
serverSize | Login address length |
nextPos | "Next" button coordinates |
usernamePos | Username input box coordinates |
passwordPos | Password input box coordinates |
loginPos | Login button coordinates |
logonWaitCount | Number of waiting rounds for login, default 20 |
logonWidth | Login success window width |
logonHeight | Login success window height |
url | VPN Network download test address |
closeBy | Close type, default 3, close all |
userPos | Close menu coordinates |
exitPos | Exit menu coordinates |
confirmPos | Confirm exit menu coordinates |
closePos | Close button coordinates |
| Indicator index | Indicator name | Calculation method |
|---|---|---|
| 0 | Total time spent | The complete elapsed time from the start to the end of the task |
| 1 | DNS Lookup Time | URL domain name resolution time of settings |
| 2 | VPN login time | The time from entering the username and password to successful login |
| 3 | Download takes time | Download time of the URL of settings |
| 4 | Time to start VPN client | The time taken from CreateProcess to when the Application window is ready |
| 5 | Download Speed | Download time of the URL of settings |
| 6 | Update takes time | How long does it take to update VPN client information? |
| Error code | meaning |
|---|---|
| 699001 | VPN client failed to start |
| 699002 | VPN client login failed |
| 699003 | VPN Network download failed |
| 612xxx | Other standard errors |