Skip to content
SPEC QA
  • Home
  • Services
    • Manual Testing
    • Automated Testing
    • Security Testing
    • Performance Testing
    • Managed Testing
  • Case Studies
  • Contact Us
×
  • Home
  • Services
  • Blog
  • About Us
  • Engagement Models
  • Privacy Policy
  • Terms of Use

Automation Testing for Plug-In

SPEC QA/Case Studies/Automation Testing for Plug-In

About the BI Plug-In

Industry: Business Intelligence

BI Plugin is a plugin which basically converts SQL queries into different charts/table format. The plugin converts SQL query results into JSON format and shows the values on screen as columns/rows. It also gives the facility to download those charts/tables in the desired format.

The requirement was to automate these features using Selenium.

Key Challenges

The requirement was to check whether the values returned by web service are shown correctly on screen or not. Sometimes application downloads corrupted file for one of the features. The challenge was to check whether the downloaded file was corrupted or not through automation script only.

  • The application allowed to access page only after valid login. So the challenge was to retrieve the data from Web Service response through automation script with authentication
  • The response was in JSON format so we need to parse the JSON format
  • Yet another difficult task was to get the latest downloaded file and its location

Our Solution

Proposed solution

We have used Java for writing automation scripts with Selenium. The Java code gets a response from the request provided. It then parses the JSON received according to the requirement and fetches required values.

We get the download preference (the folder where all downloaded files are stored) for the browser on which the script is being executed. From that directory, we get the latest downloaded file and check if it is corrupted or not.

Implementation

  • Get Response: Using Base64 encoding, we get authorization token for a user who has logged in. On passing the token in HttpURLConnection, the response is fetched in JSON format.
  • Parsing JSON: We have used JSONParser for parsing JSON and retrieving values.
  • Checking downloaded file: We get the last downloaded file from download location and then check the extension of the downloaded file. If it does not match with selected/provided list, the script throws an exception as a corrupted file. If the extension matches, we read that file with a different class for different extensions. If there is an exception while reading the file, we consider it as corrupted file and script throws an exception.

Tools & Technologies

Business Benefits

  • Reduce chances of human error and give accurate output
  • Check multiple combinations in less time compared to the manual execution
  • Find bugs at an early stage
  • Ensures cost-savvy, time-savvy automated testing at every step

Automation Testing for Plug-In

    Please prove you are human by selecting the star.
    Safe & Confidential

    SPEC QA, a venture of SPEC INDIA, is an independent software testing company helping enterprises to build quality-driven software solution with the help of modern techniques and tools. We believe, quality is the best business strategy and one should always aim for it. Read More

    India
    “SPEC House”, Parth Complex, Near Swastik Cross Roads, Navarangpura, Ahmedabad 380 009, INDIA.lead@spec-qa.com+91 – 79 – 26404031 to 34

    USA

    usa@spec-india.com

    +1 908-450-9862

    Quick Links
    • Home
    • Services
    • Case Studies
    • Engagement Models
    • About Us
    • Blog
    • Contact Us
    • Sitemap

    Contact Us Now!

      Please prove you are human by selecting the heart.
      Safe & Confidential
      • © 2025 SPEC QA . All Rights Reserved.
      • Privacy Policy
      • Terms of Use

      Request a Quote

        .doc, .docx, .pdf, .xls, .xlsx, .jpg and .png files with 5MB size allowed.

        Please prove you are human by selecting the plane.
        Safe & Confidential

        Hire Us

          Please prove you are human by selecting the star.
          Safe & Confidential
          We use cookies to enhance your user experience. By continuing to browse, you hereby agree to the use of cookies. To know more, visit our Privacy Policy & Cookies Policy Accept and Close
          Privacy & Cookies Policy

          Privacy Overview

          This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
          Necessary
          Always Enabled
          Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
          Non-necessary
          Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
          SAVE & ACCEPT