这就跟你问声好!
刚意识到,模板不能结合业务参数。
解决这个问题吗?
步骤重新创建
1。创建一个TestCase1 Library1
2。创建一个与TestSheet1 Template1和链接
3所示。创建一个TemplateInstance1并运行它。
- - - - - - - - - - - -没问题! ! !- - - - - - - - - - - - - - - - - -
4所示。现在添加BusinessParameter Library1
5。池TemplateInstance1并运行它
- - - - - -失败! ! !- - - - - -
根本原因
1。{XL[交易]}不再是翻译
2。EnterCompanyCode正在成为一个参考,
而不是在TemplateInstance1身体功能
(最初要求和解决支持中心)
最佳答案社区管理员
1. ReusableTeststepBlock (RTSB)- {XL[]} vs. {PL[]}<\/strong><\/p> Business Parameters are only available in RTSBs. Once you have decided to use them, {XL[]} references don't work anymore when you call them\u00a0directly<\/u>\u00a0on a test step in your RTSB. That's how Tosca works. Instead you can hand over the {XL[]} to the business parameter or buffer them in advance and hand over the buffer to the business parameter.<\/p> \u00a0<\/p> Example 1 -\u00a0Doesn't Work\u00a0- {XL[]} will not be resolved anymore, since you are using both, {XL[]} and {PL]} in parallel directly on teststeps<\/strong><\/p> \u00a0<\/p> Example 2 -\u00a0Works\u00a0- Once you start instantiation {XL[] reference will be resolved since it's been called in a business parameter<\/strong><\/p> \u00a0<\/p> Example 3 -\u00a0Works\u00a0- If you only use {XL[]} references in a RTSB and no business parameters, {XL[]}'s get resolved, once you start instantiation<\/strong><\/p> \u00a0<\/p> Example 4 -\u00a0Works\u00a0- Inside \/ Outside of an RTSB in parallel<\/strong><\/p> \u00a0<\/p> 2. What to put in an {XL[]} reference<\/strong><\/p> Only put testdata in your testcase design sheet and not screens, functions and SAP transaction codes you want to call (like PA30, SA38..). Make them static in the test step itself, because most of the time they are not underlying any changes within your different testcase of your testsheet. Note, you can call RTSBs within RTSBs. We have made the SAP -\u00a0 Transaction Call an RTSB and put all possible transactions to call in a value range of the business parameter. That way you can easily select them via drop down menu when you use it in your template.<\/p> \u00a0<\/p> \u00a0<\/p> \u00a0<\/p> \u00a0<\/p> 3. Not very helpful option - Turn it off :)<\/strong><\/p> That option if set on \"True\" auto-assigns \/ maps {XL[]} attributes with you module attributes within your template, once you connect it with a test case design sheet. That's super inaccurate and not reliable, since Tosca isn't only connecting 100% matches but also attributes which not even match 50% or lower.<\/p> That's it for the moment.<\/p>","className":"post__content__best_answer"}"><\/p>
<\/p>
<\/p>
<\/p>
<\/p>
<\/p>
<\/strong><\/p>