qaf

Setting chrome capabilities in application.properties file using QAF Automation framework is not working

穿精又带淫゛_ 提交于 2021-02-08 05:17:46
问题 I'm new to using QAF Automation framework. I followed the documentation on this page - https://qmetry.github.io/qaf/latest/setting_driver_capabilities.html My requirement is: I have to download a file in my test and the download should go to my project's download folder and not on macbook/test machine's download folder. I'm using chromeDriver and have to set chrome capabilities in the application.properties file within QAF framework. I added the below but it's not working chrome.capabilities

Setting chrome capabilities in application.properties file using QAF Automation framework is not working

こ雲淡風輕ζ 提交于 2021-02-08 05:17:33
问题 I'm new to using QAF Automation framework. I followed the documentation on this page - https://qmetry.github.io/qaf/latest/setting_driver_capabilities.html My requirement is: I have to download a file in my test and the download should go to my project's download folder and not on macbook/test machine's download folder. I'm using chromeDriver and have to set chrome capabilities in the application.properties file within QAF framework. I added the below but it's not working chrome.capabilities

Cucumber tags as TestNG group in QAF and Spring boot environment

时光总嘲笑我的痴心妄想 提交于 2021-01-28 08:58:21
问题 I have 4 tests in a feature file with 2 different tags @first and @then. I would like @first tests to run first with parallelism and @then tests to run after all @first tests finished, with parallelism too. The project is here : https://github.com/marcesso/qafTesting @CucumberOptions(plugin = {"com.qmetry.qaf.automation.cucumber.QAFCucumberPlugin", "pretty", "html:target"}, /*tags = {"@Ignore"},*/ features = {"src/test/resources/my/custom/packagename/testing"}) public class RunnerTest extends

Cucumber - How to configure QAF Gherkin Scenario Factory?

╄→гoц情女王★ 提交于 2020-07-22 14:48:08
问题 I have a Cucumber project running thanks to JUnit with the following class: @RunWith(Cucumber.class) @CucumberOptions( features = "src/test/resources/features", glue = "com.steps", plugin = {"pretty", "json:target/cucumber-report/cucumber.json"}) public class RunCucumber { } I want to use QAF Gherkin Scenario Factory in order to put some scenario examples in external files in order to reuse them (ex : Cucumber: Scenario Outline reusing examples table or CustomDataProvider for feature file

Cucumber - How to configure QAF Gherkin Scenario Factory?

拥有回忆 提交于 2020-07-22 14:46:52
问题 I have a Cucumber project running thanks to JUnit with the following class: @RunWith(Cucumber.class) @CucumberOptions( features = "src/test/resources/features", glue = "com.steps", plugin = {"pretty", "json:target/cucumber-report/cucumber.json"}) public class RunCucumber { } I want to use QAF Gherkin Scenario Factory in order to put some scenario examples in external files in order to reuse them (ex : Cucumber: Scenario Outline reusing examples table or CustomDataProvider for feature file

How to use apostrophe in formatted xpath?

喜夏-厌秋 提交于 2020-01-11 11:49:02
问题 I have place the locator in properties file like : header.navigation.product.link = //div[contains(@class,'grid-')]//li/a[contains(.,'%s')] and while I'm using this locator in my code- String headerproductlink = String.format(ConfigurationManager.getBundle() .getString("header.navigation.category.link"), category) And category = Women's Gym Clothing While I'm trying to locate the element it unable to find. even i have tried as Women\'s Gym Clothing but no success. Can someone please suggest a

How to manage Selenium Project Code using different package (Like page object model/Keyword driver framework)

我只是一个虾纸丫 提交于 2020-01-03 04:34:08
问题 Being first time user for automation I am looking for help related to organization of automation project and other related stuff. Can any one please share sample project with me to star with. I can able write script but I can not able manage code in java. Suggest me any best way any website. 回答1: When starting new web/mobile UI test automation using selenium webdriver, you also need to choose one of the framework that provides common black-box testing needs. Even if you start with available

Can't add QAF BDD Editor in Eclipse

一个人想着一个人 提交于 2019-12-24 07:25:31
问题 Can someone please help on how I can add QAF BDD editor plugin in eclipse? The steps in this page https://developers.perfectomobile.com/display/TT/Installing+QAF+editor+plugins+in+eclipse doesn't work anymore. 回答1: If you are inside VPN with proxy make sure that proxy configured properly. Make sure that you are able to access plugin site. If you are not able to access plugin site you need to connect your network team to get it downloaded and install from local disk. 来源: https://stackoverflow

Reusable/Generic Examples table in Cucumber

岁酱吖の 提交于 2019-12-22 11:23:58
问题 Is it possible for multiple scenarios to use the same Examples table? So instead of having something like the following: Scenario Outline: First Scenario Given I am viewing "<url>" Then I assert that the current URL "<url>" Examples: | url | | https://google.com | | https://twitter.com| Scenario Outline: Second Scenario Given I am viewing "<url>" with route "</contactus>" Then I assert that "<url>" contains "contactus" Examples: | url | | https://google.com | | https://twitter.com| I can do

How to run cucumber feature file from java code not from JUnit Runner

不羁岁月 提交于 2019-12-18 06:51:41
问题 I want to run cucumber feature file from java code. currently we are running form JUnit Runner package com.compareglobalgroup.testscript; import cucumber.api.CucumberOptions; import cucumber.api.testng.AbstractTestNGCucumberTests; @CucumberOptions(features = { "src/test/resources/feature/BB" }, glue = { "com.compareglobalgroup.stepdefs.BB", "com.compareglobalgroup.cucumber.hooks" }, plugin = { "json:cucumberreport/json/cucumberreport.json" }, tags = { "" + "@Test" }) public class TestRunnerBB