Tuesday, 25 September 2018

Using Selenium for Availability Assessment Automation Testing with HTML Code Sniffer


Openness appraisal robotization is a bit of code that can assess the web controls on a website page for availability. Openness evaluation robotization devices are helpful on the grounds that they can spare a lot of time.
The bigger the site or the more unpredictable the design, the higher the shot of missing mistakes by manual testing. So availability computerization can be utilized as a great method to produce a rundown of openness issues. There are different blunders that can be gotten via mechanization devices and needn't bother with human review. A decent model is for a situation where pictures don't have any alt message, an availability appraisal is a proficient method to report each occurrence one by one when a programmed methods for finding is accessible.
In a task, there was a ton of substance to test, so it was a decent way to deal Selenium Training in Bangalore with utilizes robotization. It expanded the speed of our undertaking and made it more productive and advanced. The utilization of a decent mechanized instrument can mean a noteworthy change in efficiency and more precise outcomes.
In the start of venture, were completing a full manual evaluation of openness. In any case, understood that a portion of the parts could be mechanized, and that it would spare our opportunity. It had numerous difficulties with heading structure, having alt content for pictures, shape fields affiliation, and missing table headers in the application, so we figured it is best to robotize this part.
We did some examination on the numerous apparatuses in the market and found that HTML Code_Sniffer can enable us to execute openness evaluation computerization with some coding in Selenium/Java. The best piece of this activity was that everything was accessible for nothing available. Hence, we didn't confront numerous difficulties to persuade our customer to actualize openness evaluation computerization.
In this blog, we will take you through how we accomplished robotization in availability appraisal.
Devices utilized in Accessibility Assessment Automation:-
We utilized the accompanying devices for our availability appraisal robotization:
Selenium-WebDriver:
Selenium is a prominent open-source electronic mechanization device. It gives a more steady way to deal with robotizing the program. More about Selenium can be found on the Selenium site: http://docs.seleniumhq.org/docs/03_webdriver.jsp. We utilized Selenium WebDriver to login to the application and to conjure the HTML_Code Sniffer on Web Page.
TestNG Framework:
TestNG is a trying system that is utilized with Selenium WebDriver. We utilized the TestNG structure for various sorts of explanations and to produce different kind of reports (e.g. test yield report)
Java:
Java is utilized as a scripting dialect. It is utilized with Selenium WebDriver to login to the application and review the web controls on the site page.
Eclipse:
We utilized Eclipse IDE (a supervisor) to compose the code utilizing the scripting dialect Java.
HTML CodeSniffer:
The foundation of our availability evaluation computerization process. You can essentially drag it from 'http://squizlabs.github.io/HTML_CodeSniffer/' and it will be added to your Bookmark. HTML_CodeSniffer is a customer side JavaScript that can check HTML code and recognize WCAG 2.0 An/AA/AAA or Section 508 infringement. For more data, if it's not too much trouble visit HTML_CodeSniffer. We didn't conjure it from the bookmark; rather, we called the HTML Code_Sniffer JavaScript in Selenium code.
How the Accessibility Assessment Automation Process Works:
The means given beneath will enable you to out to comprehend the openness mechanization utilizing Selenium WebDriver and HTML_CodeSniffer.
·         Create the Automation Report
·         Bring the URLs and refresh in Excel sheet – (Excel Creation)
Bring the URLs that you need to test in your application. We got the URLs physically, yet any instrument like Sitamp can be utilized. Our mechanization structure is test-information driven, so we have to refresh the majority of the URLs in an Excel sheet according to the pre-characterized arrange.
We made an exercise manual named DataProvider.xlsx with two sheets – 'ApplicationLogin' and 'ApplicationInfo.' The primary sheet contains the login qualifications of the application on which the availability appraisal should be performed. The second sheet contains the URL of the page and openness norms that should be tried against the application. The computerization procedure will test that standard against the application.
·         Open the Page in program – (Selenium Script)
The content will help in signing into the application in the program. Subsequent to signing in, it will pick the principal URL from the Excel sheet and divert to that URL in the program. Once the page is open, we can start to distinguish the availability issue
·         Conjure 'HTML Code Sniffer' – (Selenium Script)
Conjure the 'HTML Code Sniffer' JavaScript. Select the rules for the standard selenium training in Marathahalli dropdown to indicate mistakes, admonitions, and notification classification. Through the content and Excel sheet arrangement, mistakes or admonitions or both can be mulled over. In our mechanization procedure, we coded the Selenium content and designed our Excel sheet so that either of them two can be taken.
·         Make Automation Report – The bug report (Selenium Script)
As you saw, we have just conjured HTML Code_Sniffer and it began finding the issues. Our Selenium code/content brings the deformity data (Issue Summary, Principle, WCAG system, Code Snippet) from HTML Code_Sniffer and places it into the Automation Report all the while. The Automation Report was a solitary exercise manual in which various worksheets were made in view of the quantity of Page URLs that we expected to test. These exceed expectations report contains fields like Summary, Page URL, Page Number, Techniques, and Success Criteria.
·         Log issues in JIRA
In the wake of producing the Automation Report (Bug report), our point was logging these issues in JIRA. We accomplished this through Jersey Client. This API makes issue in JIRA utilizing JSON Object.
In spite of the fact that we accomplished a 29-30% mechanization openness appraisal, the computerization procedure helped us to accomplish higher quality and to convey the availability testing on time. It spared a great deal of time that would ordinarily be utilized to log bugs in JIRA. The majority of the clear bugs were logged specifically through computerization and we put a manual exertion into sensible bugs in which unadulterated manual mediation was required.

No comments:

Post a Comment