无法通过命令提示符运行我的黄瓜脚本

时间:2017-11-15 05:52:26

标签: selenium cucumber

我编写了一个脚本来运行我的网络应用程序。Below is the structure of my project

  1. 功能:它具有将在Web应用程序中运行程序的代码。
  2. 对象:它包含所有对象。
  3. 可重用:它包含所有可重复使用的代码。
  4. Runner:它包含将运行该功能的Runner文件。
  5. 用户故事:其中包含所有" .feature"文件。
  6. 我想在命令提示符中运行此代码..任何人都可以帮助我吗?我是这个新手

1 个答案:

答案 0 :(得分:0)

您可以使用CLI运行程序see the documentation here

来自文档:

Usage: java cucumber.api.cli.Main [options] [[[FILE|DIR][:LINE[:LINE]*] ]+ | @FILE ]

Options:

  -g, --glue PATH                        Where glue code (step definitions, hooks

Feature path examples:
  <path>                                 Load the files with the extension ".feature"
                                         for the directory <path   
                                         and its sub directories.
  <path>/<name>.feature                  Load the feature file <path>/<name>.feature
                                         from the file system.
  classpath:<path>/<name>.feature        Load the feature file <path>/<name>.feature
                                         from the classpath.
  <path>/<name>.feature:3:9              Load the scenarios on line 3 and line 9 in
                                         the file <path>/<name>.feature.
  @<path>/<file>                         Parse <path>/<file> for feature paths generated
                                         by the rerun formatter.
相关问题