You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求识别工作中需修改的scr文件所用脚本语言(附代码片段)

Identifying the Script Language: Mercury WinRunner Test Script Language (TSL)

Based on the code snippet you provided, this is Mercury WinRunner Test Script Language (TSL)—a proprietary scripting language used for test automation with the now-retired WinRunner tool (originally from Mercury Interactive, later acquired by HP/Micro Focus).

Here are the key clues that confirm this:

  • File extension: .scr is the standard file extension for WinRunner test scripts.
  • Typed local variables: Syntax like local tString sScriptName("NFORG.scr"); and local tInt iMsgCounter(0); uses TSL's type specifiers (tString for strings, tInt for integers) to declare local variables.
  • Built-in error handling variables: _ErrLevel, _ErrExecLevel, and _ErrExecTraceLevel are predefined TSL variables used to configure error handling behavior during test execution.
  • Object method calls: The -> operator (e.g., _ErrLevel->Set(0);) is how TSL invokes methods on built-in or custom objects.
  • Environment management: env->PutEnv("DB_protID", "NFORG"); uses TSL's built-in env object to set environment variables, a common task in test automation for configuring test data sources (like your DB_protID and NFORG references).

WinRunner was widely used for GUI test automation in the early 2000s, which aligns with your note that the script was procured several years ago.

内容的提问来源于stack exchange,提问作者Shaggy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 10:45:15