qaf | Quality Automation Framework for web , mobileweb , mobile | Functional Testing library

 by   qmetry Java Version: 4.0.0-RC3 License: MIT

kandi X-RAY | qaf Summary

kandi X-RAY | qaf Summary

qaf is a Java library typically used in Testing, Functional Testing, Spring Boot, Docker, Selenium, Cucumber applications. qaf has no bugs, it has no vulnerabilities, it has a Permissive License and it has high support. However qaf build file is not available. You can download it from GitHub, Maven.

for web, mobileweb, mobile native and rest web-service functional test automation. Online documentation | Step-By-Step-Tutorial.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              qaf has a highly active ecosystem.
              It has 232 star(s) with 129 fork(s). There are 56 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 59 open issues and 319 have been closed. On average issues are closed in 607 days. There are 5 open pull requests and 0 closed requests.
              It has a positive sentiment in the developer community.
              The latest version of qaf is 4.0.0-RC3

            kandi-Quality Quality

              qaf has 0 bugs and 0 code smells.

            kandi-Security Security

              qaf has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              qaf code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              qaf is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              qaf releases are available to install and integrate.
              Deployable package is available in Maven.
              qaf has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              qaf saves you 13018 person hours of effort in developing the same functionality from scratch.
              It has 25289 lines of code, 2977 functions and 309 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed qaf and discovered the below as its top functions. This is intended to give you an instant insight into qaf implemented functionality, and help decide if they suit your requirements.
            • Post the test set
            • Send email
            • Create an image part
            • Converts milliseconds to milliseconds
            • Parse a feature file
            • Returns the type of a line
            • Gets meta data
            • Sets the examples
            • Reads csv file
            • Renames a file
            • Entry point for testing
            • Invoke a method on an array of Objects
            • Updates the report
            • Execute a command and execute it
            • Move a node
            • Initializes the meta data
            • Creates the WSC file
            • Do the average match of two images
            • Fill random data
            • Parse the feature file
            • Parse the BDD file
            • Get Excel data as Map
            • Determines if the specified reference file contains a template reference
            • Scan text file
            • Do the actual execution
            • Get the dataset data as a Map
            Get all kandi verified functions for this library.

            qaf Key Features

            No Key Features are available at this moment for qaf.

            qaf Examples and Code Snippets

            No Code Snippets are available at this moment for qaf.

            Community Discussions

            QUESTION

            Qaf BDD2 setup() and teardown ()
            Asked 2022-Feb-15 at 08:45

            I am using QAF framework BDD2 for regression automation. I know how to setup setup() and teardown() webdriver in testNG but I am not sure do we have capability to set up the same QAF BDD2 setup() and teardown(). Kindly help with some examples.

            I will provide a usecase which helps to understand exactly I am looking for:

            1. whenever I wanted to run the test suite, I want to create a custom downloads folder in c:/users/XXX. Where this folder contains all my test downloads.
            2. At setup() I want to implement createCustomFolder() method to create the custom folder before the test suite begins
            3. At the end of all tests in test suite. I want to implement teardown() methods where it contains delete files() deletes the files inside the custom folder and delete custom folder() delete the folder.
            ...

            ANSWER

            Answered 2022-Feb-15 at 08:44

            You can take benefit of testng listener and qaf listeners. For example, in above use case, implement testng suite listener and do the needful in before and after suite methods:

            Source https://stackoverflow.com/questions/71102765

            QUESTION

            Error Meta-data: {"dataFile":"resources/env1/data.json"}@scenarios/jsonformfiller.feature#5 TestStep implementation not found
            Asked 2022-Feb-07 at 05:30

            Error

            Meta-data: {"dataFile":"resources/env1/data.json","description":"Data driven test that uses enter code herejson file to provide data"}@scenarios/jsonformfiller.feature#5 TestStep implementation not found. Please provide implementation or ensure 'step.provider.pkg' property value includes appropriate package.

            Step Definition

            ...

            ANSWER

            Answered 2022-Feb-04 at 19:20

            Gherkin syntax doesn't have support of meta-data. You can use BDD2 syntax which is superset of Gherkin. In BDD2 you can provide scenario metadata on top of scenario:

            Feature File

            Source https://stackoverflow.com/questions/70988758

            QUESTION

            Denon installation failed in Deno v1.18.0
            Asked 2022-Feb-06 at 20:50

            I tried installing denon for running my deno script

            I used the following command from their docs,

            ...

            ANSWER

            Answered 2022-Feb-06 at 20:50

            Edit: This issue has been fixed in denon v2.5.0

            Original answer:

            This is a known bug in denon, an official fix will be released soon but in the meantime there is a patch which you can install to workaround the issue, see this comment on GitHub:

            Source https://stackoverflow.com/questions/70813752

            QUESTION

            java.lang.NoClassDefFoundError: org/testng/IAnnotationTransformer2
            Asked 2022-Feb-03 at 17:53

            I am getting the following error while runing testng config for QAFTestSteps:

            Error shown

            ...

            ANSWER

            Answered 2022-Feb-03 at 17:53

            Looks like version compatibility issue. Use latest version of qaf 3.1.0-RC2 with testng 7.4.0.

            Updating version will fix above error, still you will see issue related to step. The reason is following steps:

            Source https://stackoverflow.com/questions/70974590

            QUESTION

            QAF | Not able to connect to ExperiTest or pCloudy with appiumDriver but I can connect only with appiumRemoteDriver
            Asked 2022-Feb-02 at 03:25

            I'm using switchDriver('appiumRemoteDriver') & switchDriver('chromeRemoteDriver') to connect between Web and mobile within the same scenario.

            I'm not able to use switchDriver("appiumDriver") / switchDriver("iosDriver") / switchDriver("androidDriver") to connect with ExperiTest or pCloudy.

            One of the issues I'm facing by using appiumRemoteDriver is that I'm not able to use QAF's mobile-support pack with common steps or are not able to execute custom commands. Eg:

            ...

            ANSWER

            Answered 2022-Feb-01 at 19:58

            Remove remote from driver.name. Instead of using value appiumRemoteDriver use appiumDriver and set driverClass capability. To use device from cloud set url provided by cloud service provider as value of remote.server.

            For example:

            Source https://stackoverflow.com/questions/70945537

            QUESTION

            QAF | If dependent scenario fails, running scenario should skip
            Asked 2022-Jan-29 at 01:00

            Does QAF support the Dependent Scenario option out of the box? I have read in the below link that dependsOnMethods is not working and not supported.

            https://github.com/qmetry/qaf/issues/281

            If the dependent scenario option is not available in QAF out of the box, can we write a custom function to check the dependent scenario result and Skip the executing scenario if the dependent scenario has failed? Any past posts or guidance will be very helpful.

            Note: I'm using BDDTestFactory2.

            ###################### UPDATED ######################

            Tried below code in testng listner, but it is not skipping the test.

            ...

            ANSWER

            Answered 2022-Jan-29 at 00:53

            Test dependency is supported for test/scenario written in java with QAF.

            Having dependency between scenarios in BDD is not a good idea, one of the possible way is, set flag in after method and check flag in before method using testng listener. Let say scenario-2 is dependent on scenario-1,

            • make sure the order in you feature file is correct
            • in after method check if test name or metadata is scenario-1 and status is fail, set flag let say my-precondition to false.
            • in before method check if test name or metadata is scenario-2 and my-precondition is false, throw SkipExeption.

            Above approach may have possible side-effects as well.

            If you want to take benefit of test dependency along with BDD, it is supported with RuntimeScenarioFactory. The good part of it is, it doesn't required separate feature file. If you required to have feature file for any reason you can generate feature files using Behavior Generator. Furthermore, with RuntimeScenarioFactory you can have more programing control then scenario in feature file.

            You also can have combination of tests in feature file (scenarios) as well as test in java file(using RuntimeScenarioFactory). Both has same capabilities for example: detailed reporting, dry run, data-driven, meta-data, meta-data filter etc.

            EDIT: Below example worked fine for me.

            Example feature file:

            Source https://stackoverflow.com/questions/70758542

            QUESTION

            Facing issue using QAF common step og click and clear methods
            Asked 2022-Jan-20 at 09:36

            Facing some weird issue when using QAF common steps. We just facing in “I click” and “I clear” methods so far.

            Step to reproduce: Step: And I click on "LOGIN_btn||rt.loc.e8R5BmyEUI"

            ...

            ANSWER

            Answered 2022-Jan-20 at 09:36

            Check all entries of step.provider.pkg. Most probably the reason is you have another library specifying step with same name with same description and step loaded from it.

            For example if you are using Perfecto-Quantum it has step with same name and description. The simplest way to find out is editor content-assist in IDE. You will see all available step definitions in content assist.

            Source https://stackoverflow.com/questions/70728192

            QUESTION

            QAF - How To update junitreports.xml when running BDDStepFactory2
            Asked 2021-Dec-27 at 22:06

            Im currently using QAF at my job and recently setup a few CICD tests using Azure Devops.

            Azure Devops at the moment is only designed to read to Junit .XML results in their reporting dasbboard.

            When running a Maven test, TestNG automatically creates a JunitReports folder that has a .xml report in it.

            The issue is that when using QAF and using BDDStepFactory2 in my config.xml file, my junit report shows all tests as ignored.

            Is there a way I can continue using BDDStepFactory2 and get the Junitresults to show either pass or fails?

            EDIT:

            The JunitResult is generating, however, this is what it looks like

            ...

            ANSWER

            Answered 2021-Dec-27 at 22:06

            Most probably issue with TestNG version. Try latest (7.4.0) version of TestNG with latest (3.1.0-RC1) version of QAF.

            Source https://stackoverflow.com/questions/70499979

            QUESTION

            QAF | How to stop screenshot for API assertion in QAF version 3.0.1
            Asked 2021-Dec-07 at 03:37

            Presently I'm running API scenarios part of the Web scenario pack. When an API scenario fails (Eg. assert for a response status), I can see the screenshot of the browser attached with the failure in the QAF report. The screenshot is taken from the open browser from another scenario. I have noticed this issue after upgrading from QAF version 3.0.0 to 3.0.1. Not sure whether it is QAF framework issue/bug or whether I'm doing something wrong here.

            If it is a known QAF issue, any temporary hacks will be very helpful.

            Below is the snippet of test-results JSON from QAF:

            ...

            ANSWER

            Answered 2021-Dec-07 at 03:37

            By design if there is active browser session, qaf will capture screenshot depending on the selenium.failure.screenshots and selenium.success.screenshots properties value. In your case, most probably it is because there is browser open while performing web services steps as per design screenshot attached in the report.

            However it should have same behavior for same test with qaf version 3.0.0 and 3.0.1. If you found that the same test/suite has different behavior with different versions (3.0.0 and 3.0.1) of qaf, that should be reported to qaf project issue tracker.

            Source https://stackoverflow.com/questions/70253962

            QUESTION

            QAF | How to fail a custom step?
            Asked 2021-Dec-07 at 02:44

            I have created a custom step in which I'm doing some calculations. I need to pass or fail the step according to the outcome of the calculations. Presently step always shows pass in the report even when the calculation fails. Also, I would like to know how to pass the fail note to the report as I can see it is implemented in common steps.

            I'm using QAF version 3.0.1

            Below is a sample example:

            ...

            ANSWER

            Answered 2021-Dec-07 at 02:44

            I was able to figure out the answer.

            Source https://stackoverflow.com/questions/70249899

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install qaf

            You can download it from GitHub, Maven.
            You can use qaf like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the qaf component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/qmetry/qaf.git

          • CLI

            gh repo clone qmetry/qaf

          • sshUrl

            git@github.com:qmetry/qaf.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link