QTP – Accessing SQL Server for automation test needs

Here’s the script that will enable you to connect to SQL Server Database and carry out basic functional tests.

Enhance the script as you may deem fit to cater to your testing needs. All the best.

Continue reading

Advertisements

SQL Query Optimization Techniques and Tips

SQL Query Optimization Tips

The most important part and parcel of a Database management system is the SQL. It will differ from product to product. Given below are some tips on how to write a well optimized query and avoid performance bottlenecks.

Primary verification of the SQL.

1)       The SQL query will need to be verified by two parameters

  1. The SQL returns the appropriate results.
  2. The SQL adequately addresses the issues of optimization and efficiency.

    Continue reading

Structured Query Language (SQL) – Using the UNION / UNION ALL

Structured Query Language (SQL) – Using the UNION / UNION ALL

In this case, let’s consider the tables such that it will be easier to understand the intricacies of the Union.

Table DEPARTMENT contains the Dept_ID and the Dept_name.

Table EMPLOYEE contains the Emp_ID, emp_name, incentives, deductions  and contains the details for the permanent employees.

Table TEMP_EMPLOYEE contains the EMP_ID, emp_name and contains the details for temporary employees. The tables have been segregated to understand the UNION query.

Continue reading

Creating a Keyword Driven Test Automation Framework

Test Automation Framework.

Automation:
With increased effort being directed to automation; it is equally important to know that to be successful and efficient necessiates for some basic infrastructure in place. The importance of an automation framework gets prime focus if you are planning to embark on a full-fledged automation effort. However creating an automation framework does not come on a platter. A huge effort does goes in to identify the scenarios and the reusability nature of the various components within the framework model.

It is equally important to know the specific operations that could synergically combine and work together to generate the final result.

Continue reading