解决了

TCShell:没有发现节点对象

  • 2023年7月31日
  • 3回复
  • 8的观点

Userlevel 5
徽章 + 2
  • 社区经理
  • 72回复

你好,

我只是试图使用TCShell脚本按照指令页面

我可以运行测试的执行列表当我在托斯卡指挥官,但是当我试着TCShell,我收到一个错误:

检查许可证……许可找到!
错误:JarodsScheduledTests。tcs(第5行):没有找到对象与节点的梅西/ _SITS /执行/ ExecutionLists / New_Student_Applications’!

下面是我的测试用例执行的位置列表:

图像

这就是我所写的脚本:

图像

我认为也许不像在测试用例名称空间,所以试图执行在较高的水平,但无济于事。

图像

谁能看到我在哪里错了吗?

谢谢,

(最初要求和解决支持中心)

图标

最佳答案社区管理员2023年7月31日,22

What i found when using TCShell is that it is sensitive to Spaces in names. So, if you have spaces, you will need to encapsulate whole path within double quotes, as you already did.<\/p>

Second thing i found is that when giving path to some location (i will use your example):<\/p>

if i tell TCShell JumpToNode \"Massey\/_SITS\/Execution\/ExecutionLists\/NEW_Student_Applications\/INT_Sutdents\/Create International Student | INT Phone Albania Landline\" it will tell me that it cannot find location<\/p>

But, if i add leading slash character to path, it will jump to that location:<\/p>

JumpToNode \"\/Massey\/_SITS\/Execution\/ExecutionLists\/NEW_Student_Applications\/INT_Sutdents\/Create International Student | INT Phone Albania Landline\"<\/p>

\u00a0<\/p>

Can you try this to see what happens? Also, when writing Tcs scripts, you can always try to first manually execute one by one command in cmd after you connect to workspace, and then write down that command into Tcs script file if it works properly.<\/p>

Hope this helps.<\/p>","className":"post__content__best_answer"}">

查看原始

3回复

Userlevel 3
徽章 + 2

我发现当使用TCShell是敏感的名字空间。所以,如果你有空间,你需要封装整个路径在双引号中,你已经做到了。

第二件事我发现当把路径给一些位置(我将使用你的例子):

如果我告诉TCShell JumpToNode“梅西/ _SITS /执行/ ExecutionLists / NEW_Student_Applications / INT_Sutdents /创建国际学生| INT电话阿尔巴尼亚固定”它会告诉我找不到位置

但是,如果我添加斜杠字符导致路径,它会跳到该位置:

JumpToNode“梅西/ _SITS /执行/ ExecutionLists / NEW_Student_Applications / INT_Sutdents /创建国际学生| INT电话阿尔巴尼亚固定电话”

你可以试试这个,看看会发生什么?Tcs在编写脚本,你可以试着在cmd首次手动执行一个接一个命令连接到工作区后,然后写下命令到Tcs脚本文件是否正常工作。

希望这个有帮助。

Userlevel 5
徽章 + 2

补充说,主要削减建议:

检查许可证……许可找到!
错误:JarodsScheduledTests。tcs(第5行):没有找到对象与节点的梅西/ _SITS /执行/ ExecutionLists / New_Student_Applications / INT_Students’!

试图运行一个不同的测试:

2 dec4547976cad10a759ffa3f153af49.iix

检查许可证……许可找到!
错误:JarodsScheduledTests。tcs(第5行):没有找到对象与节点的梅西/ _SITS /执行/ ExecutionLists / JarodTest / Order_Digital_documents’!

然后我删除/梅西和得到远一点:

错误:JarodsScheduledTests。tcs(13号线):不允许更改对象“Order_Digital_documents”!

现在去开会,但越来越近。

谢谢你的小费后运行手动连接到工作区。

Userlevel 3
徽章 + 2

我在先前的声明,因为我犯了一个错误指令被误导你还包括工作区名称的路径在使用JumpToNode TCShell命令。我试图跳执行使用TCShell列表中项目和我能够做成功。更多细节请查看截图:be3c53cf97206150ae61758fe153afaa.iix

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu
map