测试和调试脚本

This help page is for Desktop Studio. This information is also available for Studio.

测试和调试是脚本开发中的重要步骤。 您可以通过多种方式在Studio中执行此操作:

  • Check for Syntax Errors: You can check your script for syntax errors. Anything found by this tool appears on the tab in Studio. When you save a script, a syntax check automatically runs. Warnings indicate things that you should look at and consider fixing. Errors are critical issues that prevent the script from working. You won't be able to save your script until you correct all errors.
  • 使用模拟交互进行测试:您可以通过在 simulating interactions 中模拟交互Studio来测试脚本。 这样,您就可以看到脚本的运行情况,并诊断出需要修复的问题。 您可以对模拟交互运行跟踪,从而深入了解脚本内发生的情况。
  • 跟踪脚本Tracing scripts可使您查看脚本运行时发生的情况。 您可以将其用于实时或模拟交互。 工具向您显示脚本中的操作以及输出如何随着脚本的进展而变化。 您可以看到脚本中存在的变量及其保存的值。 您还可以查看操作的属性,包括它们在跟踪的脚本中的配置方式。
  • 调试代码 and Check Syntax 在代码段中:编辑器窗口有 two features,您可以使用它check the code。 窗口的工作方式类似于迷你跟踪,允许您逐行单步执行代码。 您可以在代码中看到每个变量及其在该点所保存的值。