qaf

Is there any framework which supports Behaviour driven approch (bdd) for selenium-webdriver with driver managment?

大兔子大兔子 提交于 2019-12-18 05:13:08
问题 I want to start my automation project from scratch, as per requirements I have to use Behavior Driven Approach for testcase authoring and selenium for Automation. please suggest best suited framework. 回答1: You can check open source QMetry Automation Framework for web (selenium-webdriver) and mobile (appium) automation. It has all the features driver management, parallel execution, run configuration you want and many more like data-driven testing, data-bean, locator repository, integration

qaf-cucumber - can not reference data from CSV data provider in BDD2 scenario outline

北城余情 提交于 2019-12-13 02:55:49
问题 Context I want to use qaf-cucumber to take advantage of QAF features while still using Cucumber with JUnit . Mainly, I need QAF for its data provider feature, allowing to externalize scenario examples in .csv in order to use them across several scenarios and features. Junit : 4.12 Cucumber : 5.0.0-RC2 QAF : 2.1.15 qaf-cucumber : 2.1.15-beta-3 (most recent version, as there is no release yet) Problem When using the QAF tag @dataFile above a scenario to specify the location of the .csv: I get

Multiple OS, browsers for parallel execution using Saucelabs and QAF framework

旧巷老猫 提交于 2019-12-11 05:49:10
问题 I'm using QAF Automation framework with Selenium Web Driver, Java, TestNG and been successful in executing one test at a time, remotely on Sauce labs. But my test executes for Windows OS, when I want it to execute on Mac OS. Not sure why windows is being selected by default. The only properties I provided are: remote.server=http://username:ACCESS_KEY@ondemand.saucelabs.com:80/wd/hub remote.port=80 driver.name=chromeRemoteDriver Where should I mention in QAF Framework? multiple OS - Windows or

How to run cucumber jvm test scenarios in parallel using Gradle?

ε祈祈猫儿з 提交于 2019-12-10 21:35:26
问题 I couldn't find best solution for running cucumber test scenarios in parallel using gradle The best possible solution found so far is this.. but I can't run it locally successfully Any help much appreciated!! Thanks in advance. 回答1: Take a look at Courgette-JVM You can execute this with a gradle task. It has added capabilities to run cucumber tests in parallel on a feature level or on a scenario level . It also provides an option to automatically re-run failed scenarios. Usage @RunWith

Handling excel spreadsheets with Cucumber Scenario Outline

爱⌒轻易说出口 提交于 2019-12-09 19:38:18
问题 I am trying to see, if possible, to have a more elegant way to handle calling nTh numbers from a Cucumber Scenario Outline that correlates to an excel spreadsheet row(nth). Currently I am using iteration numbers to define the row # of the excel spread sheet to pull the data from. I wanted to see if it was possible to use cucumber with excel in a more elegant way than the below example with the scenario outline. Some background: Each iteration needs to be its own scenario. Hence why I'm not

Do we have any annotation in cucumber where it will run before any of the tests in the feature file?

邮差的信 提交于 2019-12-08 05:23:20
问题 @Before method will run before every scenario. Do we have an annotation where it run before any of the scenarion and an annotation after all the scenarios have been executed ? 回答1: You can use gerkin with qaf where you can use different TestNG listeners and annotations. In addition to that if you are using webdriver you can get additional driver and element listeners support. For example package my.test.pkg public class MyClass{ @BeforeSuite public void beforeSuite() { //get executed before

Reusable/Generic Examples table in Cucumber

血红的双手。 提交于 2019-12-06 15:22:46
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 something like Scenario Outline: Reusable Example Examples: | url | | https://google.com | | https:/

Handling excel spreadsheets with Cucumber Scenario Outline

◇◆丶佛笑我妖孽 提交于 2019-12-04 14:21:43
I am trying to see, if possible, to have a more elegant way to handle calling nTh numbers from a Cucumber Scenario Outline that correlates to an excel spreadsheet row(nth). Currently I am using iteration numbers to define the row # of the excel spread sheet to pull the data from. I wanted to see if it was possible to use cucumber with excel in a more elegant way than the below example with the scenario outline. Some background: Each iteration needs to be its own scenario. Hence why I'm not using a simple for loop with row.count. I am fully aware of scenario outline as a way to do data tables

CustomDataProvider for feature file (QAF)

不问归期 提交于 2019-12-04 04:11:31
问题 I'm using QAF and it's amazing tool, but i have one problem. Are there any ways to parameterize cucumber feature steps with custom data provider as it's done in BDD files? For example, we can insert data from external file Examples: {'datafile':'resources/testdata.txt'} In .BDD it's done like this: SCENARIO: Data provider with testng method argument and context META-DATA: {"dataProvider":"dp-with-testngmethod-contex", "dataProviderClass":"com.qmetry.qaf.automation.impl.CustomDataProvider"} #

How to use apostrophe in formatted xpath?

夙愿已清 提交于 2019-12-02 04:08:40
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 way ? Below different ways worked for me: Locator in Property file: another.header=xpath=//h1[contains