GithubHelp home page GithubHelp logo

pyqa / prodigyqa Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 19.0 7.11 MB

Unified Test Automation Framework in Python

Home Page: https://pyqa.github.io/prodigyqa/

Python 99.32% Shell 0.68%
api-testing-framework continuous-testing docker pytest python selenium-python selenium-python-bindings

prodigyqa's People

Contributors

abhimaniu avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar gitter-badger avatar gnana03 avatar obannak avatar ravikiransandri avatar ravikumar-vattumalli avatar surevs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prodigyqa's Issues

ENH:Web Spider Enhancement

Is your feature request related to a problem? Please describe.

  • Documentation to be improved

  • Sleep to be removed

  • Few WIP methods are to be closed

  • Coding Standards to be improved

ENH - Implement selenium grid to achieve remote execution.

Is your feature request related to a problem? Please describe.
Need to implement selenium grid, to achieve remote execution of test cases across different browsers, operating systems and machines in parallel.

Describe the solution you'd like

  • Use selenium standalone jar for creating hub and nodes.
  • Configure desired capabilities to set the type of browser and OS that we will automate.
  • Configure remote web driver to set which node (or machine) that our test will run against.
  • Sample test script which will make use of all above mentioned points for demo purpose.

ENH: Automated Accessibility Tests as per standard W3C

Is your feature request related to a problem? Please describe.
Accessibility Tests are to be conducted in an automated way

Describe the solution you'd like

  • Visit a webpage (using requests module in case of non-login pages, using selenium in case of login scenario to application)
  • Parse through the HTML page source and conduct Accessibility tests on the page itself
  • Validate it against the standard W3C standards
  • There must be a way of how additional words could be specified e.g: proper nouns using a data file or a custom list of dictionary

ENH: Email Module to be created

Interact with Email and extract the needed text

  • read email
  • fetch email
  • send email (which could be enhanced with sharing of pytest-html report by default but optional)
  • Should be able to pick elements from email or should be able to validate the content or context of email

Web Spider to be enhanced using scrapy

Web spider has to be enhanced for non login screens, where we can automated the url scraping from scrapy when compared to selenium as it is fast and can be implemented on multi threading too ( speeds up the activity)

Restructure Examples in a neat way

Current Examples have been dumped into one folder, while it could be done in a better way of grouping things and tests (though duplicated can be part of different folder).

as per feedback recieved

ENH:CLI to be created for ease of environment maintenance

Is your feature request related to a problem? Please describe.
It is very tough to write up a guideline and perform a necessary set of activities like to setup browsers/install a set of pre-required packages/software to ensure various items are present before a user picks it up.

Describe the solution you'd like
modules/utilities are to be driven through this CLI with proper on-screen help as needed.
something like imgqa setup browsers or imgqa setup comparison or imgqa setup web spider or passing a value like imgqa test web app ${url} so that it is easy and makes the integration of this framework

Describe alternatives you've considered
write a command line utility in go and integrate it with imgqa. but not a probable solution. Let's consider this doing by python itself

Image Comparison Overhaul- as per feedback recieved

Describe the bug

  1. Image Comparison outcome has been confusing and needs an overhaul.(feedback recieved)
  2. Simplify the output of Image Comparison with 2 methods
  • compare_source_in_target(sourceimage, targetimage) - which should ideally return a booleanvalue (True/False)
  • Compare_images(sourceimage,targetimage) - which should ideally return only the Structural similarity value which should be used for the tester/user to maintain conditions depending upon value recieved in their test scripts

Fix the Errors on Methods in Browser Actions

Describe the bug
Browser Actions Method to be corrected/updated

Methods list

  • get_current_url
  • switch_to_alert
  • clear_text

Expected behavior
Methods to work while test is happening

Screenshots
NA
Desktop (please complete the following information):

  • Across OS
  • All Browser [e.g. chrome, safari]
  • Version [e.g. 0.3.0]

ENH - Comparison module

Is your feature request related to a problem? Please describe.
Need to create a comparison module which supports various kinds of comparisons

  • PDF

  • JSON

  • Excel/CSV

  • Need to Integrate Image comparison utility as well into this module

Describe the solution you'd like

  • Method to accept two entities and compare them in an automated way

  • Use the extension of file to automatically ensure that it is a supported format

  • Basic checks which are needed to be checked for Excel/CSV

  • File type

  • Number of Rows

  • Number of Columns

  • Compare Column Headers of both files

  • Perform a quick rearrangement of data dimensions on fly

  • Compare it row wise and let the difference details be captured as part of log/result/traceback

  • Basic checks which are needed to be checked for PDFs

  • File type

  • Number of pages

  • Compare the pdfs(text only) and let the difference details be detailed as part of an image file like png.

  • Basic checks which are needed to be checked for json

  • File type

  • Structure of json objects.

  • JSON objects are sorted.

  • Compare the json objects and let the difference details be captured as part of log/result/traceback.

ENH: Saucelab integration

Is your feature request related to a problem? Please describe.
Need to integrate framework with sauce lab to run test cases on cloud platform.

Describe the solution you'd like

  • Create Sauce lab trial version account.
  • Sauce-python client to report job information to the Sauce Labs dashboard.
  • Configure desired capabilities to set the type of browser and OS that we will automate.
  • Configure command executor to point to the Sauce cloud and use Sauce Labs authentication to log in.
  • Sample test script which will make use of all above mentioned points for demo purpose.

ENH: Selenium page actions improvement

Is your feature request related to a problem? Please describe.

  • Documentation to be improved

  • Sleep to be removed

  • Few WIP methods are to be closed

  • Coding Standards to be improved

  • Restructure or beautify module with decorators

  • Add up Logging Feature for the necessary set of actions

MAINT: Repository Maintenance activities

  • Setup Travis CI for Python 2.7 + and python 3+

  • Setup Automated Build and Release Mechanism for Docker

  • Setup PYPA access to enable binary and source distribution factors

  • Update ReadMe to enable proper linking of activities

BUG:Imports to be improved

The current way of imports is very rudimentary like from imgqa.core.page_action import PageActions which should be moved to from imgqa import PageActions (example) so that any future restructuring of the repository must not take a hit and removes the posterior complexity

BUG: Browser Actions to handle the import error

==================================== ERRORS ====================================
_______________ ERROR collecting Examples/sampleseleniumtest.py ________________
sampleseleniumtest.py:3: in <module>
    from imgqa import BrowserActions
../imgqa/__init__.py:3: in <module>
    from imgqa.browseractions import BrowserActions  # noqa
../imgqa/browseractions.py:32: in <module>
    class BrowserActions(unittest.TestCase):
../imgqa/browseractions.py:107: in BrowserActions
    @page_readiness_wait
E   TypeError: page_readiness_wait() takes exactly 2 arguments (1 given)
=========================== 1 error in 2.87 seconds ============================ERROR: not found: /Users/revanthmvs/Desktop/new_github/imgqa/Examples/sampleseleniumtest.py::TestClass
(no name '/Users/revanthmvs/Desktop/new_github/imgqa/Examples/sampleseleniumtest.py::TestClass' in any of [<Module 'Examples/sampleseleniumtest.py'>])

ENH: Spell Checker Module on Web Pages

Is your feature request related to a problem? Please describe.
Spell Checker Module/Utility to be built and to be integrated with Web Spider Module

Describe the solution you'd like

  • Visit a webpage (using requests module in case of non-login pages, using selenium in case of login scenario to application)
  • Parse through the page and tokenize the English words present on the page
  • Validate it against the standard dictionary to ensure spell is correct
  • There must be a way of how additional words could be specified e.g: proper nouns using a data file or a custom list of dictionary
  • Output shall be the list of pages vs words correct vs words

Program to lint the Object Repository

Objective of this is to Link Object Repository for

  1. JSON
  2. Yaml
  3. Excel
    to handle/fix duplicates in object repository.
    For eg., When two objects one with locator value,value and another with only locator value then the approach or program to pick the right object

PYPI relase to be automated

currently manual push of sdist and bdist is happening, it must be automated through Travis Build itself

P.S: please speak to @surevs in case you are interested to work around this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.