【问题标题】:QAF Perfecto - Not able to consume test data from XMLQAF Perfecto - 无法使用 XML 中的测试数据
【发布时间】:2019-12-22 05:44:05
【问题描述】:

当尝试在 Quantum Perfecto 中使用项目中的 XML 数据时,我收到 Lexing 错误。我已经附上了这个和错误的场景。

同样的错误也出现在量子入门套件项目中。

@GettingToKnowYou
Feature: Verify the Borrower can Navigate through Getting To Know You Pages

   @GKY @Test
 Scenario Outline: Verify Borrower complete Getting To Know You Page

   Given User already Signed with "<emailaddress>" and "<password>" 

    Examples: {'key' : 'blenddata.borrower.dataset'}

【问题讨论】:

    标签: selenium-webdriver cucumber qaf perfecto


    【解决方案1】:

    您没有提供您正在使用的编辑器的详细信息。这看起来像是来自编辑器的错误,与量子项目无关。我希望您能够毫无问题地运行您的测试。您可以尝试使用qaf bdd editors

    此外,您可以开始使用BDD2 syntax 而不是 Gherkin。 BDD2 是高级语法并且与大多数小黄瓜编辑器兼容。在 BDD2 语法中,您的功能文件可能如下所示:

    @GettingToKnowYou
    Feature: Verify the Borrower can Navigate through Getting To Know You Pages
    
     @GKY @Test
     @key:blenddata.borrower.dataset
     Scenario Outline: Verify Borrower complete Getting To Know You Page
    
       Given User already Signed with "<emailaddress>" and "<password>" 
    

    在运行configuration 以BDD2 编写的功能文件时,您需要使用BDDTestFactory2

    【讨论】:

    • 谢谢!会尝试并让你知道。感谢您的回复。
    • 你好@user861594 我已经从以下站点安装了黄瓜和qaf 编辑器。我仍然看到这个问题。 qmetry.github.io/qaf/editor/bdd/eclipsecucumber.github.io/cucumber-eclipse/update-site
    • 尝试右击->用qaf gherkin editor打开和打开。
    • 谢谢!我在打开时没有问题。作为黄瓜功能文件运行时出现问题。尝试运行时,我收到了我在顶部问题中提到的消息 - Lexing 错误
    • 你在用黄瓜跑步机跑步吗?如果是这样,请尝试使用 qaf runner 运行。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-18
    • 1970-01-01
    • 2021-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-31
    相关资源
    最近更新 更多