2 Scenarios (2 undefined)
5 Steps (5 undefined)
0m0.000s
You can implement missing steps with the snippets below:
Given("^User is on Home Page$", () -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
When("^User enters UserName and Password$", () -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
Then("^He can visit the practice page$", () -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
When("^User LogOut from the Application$", () -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
Then("^he cannot visit practice page$", () -> {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
});
这是我的胶文件
package glue;
import java.io.IOException;
import org.testng.annotations.Test;
import cucumber.api.CucumberOptions;
import cucumber.api.testng.AbstractTestNGCucumberTests;
import cucumber.api.testng.TestNGCucumberRunner;
@Test(groups = "cucumber")
@CucumberOptions(features = "C:\\Users\\workspace\\cucumber\\src\\test\\java\\feature\\logintest.feature",
glue = "C:\\Users\\workspace\\cucumber\\src\\test\\java\\glue\\Glue.java",
plugin = {"html:C:\\Users\\workspace\\cucumber\\logs"})
public class Glue extends AbstractTestNGCucumberTests {
@Test(groups = "cucumber", description = "Runs Cucumber Features")
public void runCukes() throws IOException {
}
}
这是我的.feature
文件
Feature: Login
Scenario: Successful Login with Valid Credentials
Given User is on Home Page
When User enters UserName and Password
Then He can visit the practice page
Scenario: Successful LogOut
When User LogOut from the Application
Then he cannot visit practice page
这是我的依赖项
js lang-js prettyprint-override"><!-- https://mvnrepository.com/artifact/info.cukes/cucumber-testng -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/gherkin -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.12.2</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java8</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
您正在使用cucumber-java8依赖项,因为下面是stepdefinition文件的格式(确保您的java编译器版本应该是1.8)。
@given注释将使用cucumber-java
给定的注释将在cucumber-java8中
import cucumber.api.java8.En;
public class stepDefinitions implements En{
public stepDefinitions(){
Given("^User is on Home Page$", () -> {
// Write code here that turns the phrase above into concrete actions
System.out.println("Test1");
});
When("^User enters UserName and Password$", () -> {
// Write code here that turns the phrase above into concrete actions
System.out.println("Test2");
});
Then("^He can visit the practice page$", () -> {
// Write code here that turns the phrase above into concrete actions
System.out.println("Test3");
});
When("^User LogOut from the Application$", () -> {
// Write code here that turns the phrase above into concrete actions
System.out.println("Test4");
});
Then("^he cannot visit practice page$", () -> {
// Write code here that turns the phrase above into concrete actions
System.out.println("Test5");
});
}
}
3天前,我突然注意到,在使用Google fonts的“Open sans”字体作为主字体之前,我创建的一些网站在Chrome上看起来很奇怪、不规则和像素化。 我尝试过几种修复方法,从在Windows上调整ClearType到禁用标志(加速2d画布)以及在Chrome上禁用硬件加速,几乎尝试了我在互联网上能找到的所有方法,但都没有效果。 我也试着从我的视窗字体文件夹中删除“打开无”,但是字体在我的
我正在使用flutter_launcher_icons包为Android和iOS生成启动器图标。在iOS上一切看起来都很棒,但在Android上图标看起来很小: 是左边第二个。我试过各种方法让它变大。我尝试了几个不同的源图像来生成图标,512x512和900x900,但无论我做什么,我都不能让它生成一个像其他图标一样大的图标。我肯定我错过了一些愚蠢的东西。这是我的flutter_launcher_
我从以下网站运行代码: https://ntguardian.wordpress.com/2018/07/17/stock-data-analysis-python-v2/ 这会生成蜡烛图。我在Spyder中运行过类似的代码,我对代码所做的唯一修改是 我似乎不明白为什么在我没有修改代码的情况下,我会看到如此明显的差异。 Spyder中是否有一些怪癖导致了这个问题,还是我需要多几行代码? 请帮助我,
请访问我的网站:http://www.oneniceday.com 背景图像在我的屏幕上看起来真的很模糊,即使图像大小是1920 x 1080像素。我正在使用一个jQuery脚本来处理这个bg的事情,因为css方法都给了我不希望的结果。 有什么方法可以解决这个模糊问题吗?
我构建了一个小java程序,使用最低有效位方法在图像中隐藏消息。输入jpg文件时,它可以正常工作。输出可以是png或jpg。但当输入png时,结果看起来非常奇怪。 以下分别是原始图像和结果图像: 此外,测试类:
我在布局上有个很奇怪的问题。它在eclipse XML编辑器和我的三星galaxy中看起来是设计的,但在我的旧手机xperia x10 mini中却搞砸了。我只能假设这也会发生在其他设备上。 如果有人能帮助解决这个问题,我将不胜感激。 下面是两个截图和XML代码。