我必须使用Selenium WebDriver为100个用户执行负载测试.100个用户一次登录并点击服务器.
如何使用Selenium WebDriver完成此过程?
请分享有关selenium webdriver的知识.请显示实时示例.
@RunWith(Cucumber.class)
@CucumberOptions( plugin = {"pretty","html:target/html/automation"},
features = {"resource/***.feature"},
glue={},
tags={"@login","@Products"}
)
Run Code Online (Sandbox Code Playgroud)
这是我的功能文件
@登录
功能:登录应用程序
场景:这是验证应用程序是否已成功登录给定导航到 Panasonic 应用程序然后验证应用程序的标题然后注销应用程序
@产品
功能:登录应用程序
背景:用户应该导航到应用程序的主页
给定用户使用有效凭据登录主页
单击主页上的目录链接时
场景:验证产品页面是否可以创建十个以上产品
并检查目录的子菜单是否显示在标题中
并检查我的产品目录表
java selenium cucumber-junit selenium-webdriver cucumber-java