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
2
votes
1 answer

Running TestNG QAF BDD tests in Parallel

How do I run all Qmerty tests in a folder in parallel using TestNG, I have my config XML like below, but tests in resources/scenarios/smoketests folder are not running in parallel
JavaKB
  • 438
  • 1
  • 3
  • 18
2
votes
1 answer

QAF: java.lang.IllegalArgumentException: Key for add operation must be defined

Environment: QAF Java: 8 TestNG: 6.10 Appium: 1.18.0-1 IVY ivy.xml BDDTestFactory Android Device: OS 9 On trying to run any scenario on Android device, it is throwing below exception. It works fine on iOS Device & this was working fine even on…
Vishwathma
  • 91
  • 1
  • 10
2
votes
2 answers

How can i place checkpoints in Qmetry automation Framework(QAF)

I recently started using QAF Java framework for testing. I really liked there dashboard which is detailed and attractive. However, I unable to utilize most of framework due to limited knowledge and documentation in Qmetry website. How to place…
Satish A
  • 83
  • 6
2
votes
2 answers

how to use edgeDriver with qaf

I use below properties to run edge browser, but it doesn't work. webdriver.edge.driver=src/main/resources/common/msedgedriver.exe driver.name=edgeDriver How can I use edge browser?
Moon
  • 137
  • 1
  • 7
2
votes
1 answer

How to access object field in qaf step from stored variable

In my previous question I was looking for a way to access and store return value of the function in qaf step. I was provided with the following: When create new user using "{'name':'user1','password':'user123'}" And store into 'newUser' Then system…
user3812972
  • 77
  • 1
  • 6
2
votes
1 answer

Did QAF support excel version with suffix is .xlsx

I use an excel file with suffix is ".xlsx", qaf use CSVUtil to analyze this file, and throwing exception. If I use ".xls" file, it worked well.
Moon
  • 137
  • 1
  • 7
2
votes
1 answer

TestNg DataBinding : setting the location of properties on test start up

I was looking at https://sourceforge.net/projects/testngdatabind/ and searched for the possibility to set the properties location on start up of the tests. The usecase is that I have more environments (e.g. different databases) where I want to run…
2
votes
1 answer

Why TestNG complains on using @QAFDataProvider

@QAFDataProvider(dataFile = "src/test/resources/data/logintestdata.csv") @Test(testName="testLoginPage", description="Login Page landing validation", priority=1, groups={"SMOKE"}) public void testLoginPage(Map data) { //…
Ashis Raj
  • 53
  • 4
2
votes
1 answer

How to use QAF to find elements

new QAFExtendedWebElement() only can find one element, if I want to find elements like use selenium directly, eg. driver.findElementsByXPath, which method should I used, please give an example.
Moon
  • 137
  • 1
  • 7
2
votes
1 answer

JUnit implementation of QAF

Good afternoon. Is it possible to implement the work of QAF with JUnit? For example, i want to use qaf-gherkin in my project, but it's build on JUnit + Cucumber. As I see, there is a similar question, but there is no description about project and on…
2
votes
1 answer

QAF - wanted to open and close the browser with each test

I am using QAF open source Java library in my UI Automation Framework and wanted to open and close the browser with each test. But, can't do it with below code hence browser which is opened by testSuccessfulLogin() keeps opened hence the…
Ashis Raj
  • 53
  • 4
2
votes
1 answer

How to find the driver instance in QAF framework

During execution I want to know which browser currently the script is running and do some actions based on the browser the script is running. I am using Option 1: if (new QAFExtendedWebDriver().getUnderLayingDriver().equals("ChromeDriver")) { …
2
votes
1 answer

Running Appium with quantum framework in local gives "Unable to create driver instance in 1st attempt"

I am relatively new to quantum framework and I was trying to set up an appium test through Quantum framework. I have given below configuration in application.properties but when I am running it I am getting "Unable to create driver instance in 1st…
2
votes
3 answers

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

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…
2
votes
1 answer

Cannot Pass Instance Variables Within QAFTestStepProvider Class

I get a NullPointerException for instance variables that are instantiated in a method with a @Given annotation as shown in the code below for "test": import com.qmetry.qaf.automation.step.QAFTestStepProvider; import…
jr09
  • 23
  • 2
1
2
3
12 13