Questions tagged [qaf]

QAF (acronym of "QMetry Automation Framework" ) open source test automation framework for functional test automation using selenium, web-driver, appium and for rest based web-service. Use this tag when the question is related to test automation using QMetry Automation Framework.

QMetry Automation Framework was formerly known as ISFW (InfoStretch automation framework), is an open source test automation framework which support functional test automation of web, mobile-web and mobile-native application. It also supports rest web-service automation. It has powerful design concepts like testcase, testpage, test-step, custom-components, self-descriptive-locator, data-bean, listeners etc...

It supports different way of authoring test case including

  • Java (TestNG) : You can opt for standard TestNG test
  • Behavior Driven: It supports multiple BDD syntax.
  • Keyword Driven: It supports keyword driven testing by authoring test in CSV, Excel or XML using in-built keyword and defining your own custom keyword

All of the above test authoring way has data-driven test capability where your test data can resides in CSV or JSON or XML or EXCEL file or even in Database.

References:

187 questions
5
votes
2 answers

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

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; …
bugCracker
  • 3,656
  • 9
  • 37
  • 58
5
votes
2 answers

How can I filter testcases using custom meta-data in QAF?

I am using QAF for my automation project. I have project specific meta-data which has group SMOKE, regression, P1 and author with x,y,z name. SCENARIO: SampleTest META-DATA: {"description":"Sample Test Scenario","groups":["SMOKE"],"author":["x"]} …
bangoria anjali
  • 400
  • 1
  • 10
5
votes
2 answers

Is it possible to migrate from cucumber-jvm to QAF?

we already have automated testcases using cucumber-gherkin feature files with WebDriver. Right now we are able to execute feature files parallel, however we are not able to execute parallel at scenario/scenario outline level. By this way we want to…
Developer
  • 1,009
  • 8
  • 25
  • 56
4
votes
2 answers

Is there any selenium specific testing framework available?

Is there any readymade utilities/framework available which can provide some common functionalities for automation needs like data management, reporting etc. Java is most preferable language.
user988075
4
votes
2 answers

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

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.
Ranjith's
  • 4,508
  • 5
  • 24
  • 40
4
votes
4 answers

Multiple locator for finding webelement with webdriver

I am using Selenium Webdriver with QAF. The issue I am facing is related to finding an element on webpage. for few of elements, different locators work at different times. For example - sometimes name=nameA works and sometimes name=nameB(may be…
Shalin
  • 414
  • 4
  • 16
3
votes
1 answer

QAF cucumber testNG with spring boot

I have a cucumber project that uses spring boot and testng. Here the principal classes @SpringBootTest public class CucumberTestDefinitions extends FunctionalTesting { @Given("Something") public void smthg(){ …
marie
  • 457
  • 8
  • 27
3
votes
1 answer

Cucumber Scenario: getSourceTagNames() inconsistently returns list in random order

I am trying to implement an automated evidence capture system for each cucumber scenario that is executed. As part of that I need to use the first scenario @tag as part of the evidence folder name. However, I have found that the getSourceTagNames()…
3
votes
1 answer

CustomDataProvider for feature file (QAF)

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:…
3
votes
2 answers

Reusable/Generic Examples table in Cucumber

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 "" Then I assert that the current URL "" Examples: …
Andrea
  • 55
  • 1
  • 5
3
votes
3 answers

Is there any annotation which generates time required for each step to execute from automated test

I am using TestNG to execute this test. On execution of this test I get total time required to execute this whole test. Now the requirement is I need to record time taken for each step to execute from this test. Below is my automation test. This has…
user3766763
  • 181
  • 1
  • 3
  • 8
3
votes
1 answer

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

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.
Vansh
  • 51
  • 5
3
votes
1 answer

Handling excel spreadsheets with Cucumber Scenario Outline

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…
Carl Laneave
  • 43
  • 1
  • 1
  • 7
2
votes
1 answer

How to define platform-specific page elements for iOS and Android in a single place using QAF?

I'm developing a test case that needs to run on both iOS and Android platforms using QAF (Qmetry Automation Framework). I want to follow a Page Object approach where I can define elements for both platforms in a single place and reuse them in my…
2
votes
1 answer

Can QAF @datafile be parametrized?

Is it possible to parametrize @datafile in QAF BDD2? I have the following line in my cucumber feature file @dataFile:src/test/resources/testdata.xls I'd like to be able to use different test data files depending on the environment I run the test…
1
2 3
12 13