在 Cucumber 中,您对 glue 的理解是什么?
glue 是 Cucumber 选项的一部分,它描述了步骤定义文件的位置和路径。
示例
测试运行器文件。
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import cucumber.api.testng.AbstractTestNGCucumberTests;
@CucumberOptions(
features = "src/test/java/features",
glue="stepDefinations"
)
public class TestRunner extends AbstractTestNGCucumberTests { }
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP