Gui automation framework

Preview:

DESCRIPTION

Gui automation framework using MFC.net. It is an automation bench where all the common controls and some activeX controls are automated

Citation preview

WELCOME

GUITESTING

AUTOMATION

MindTree guides

Sandeep Agarwal (Vice President & Head, R&D Services) Vishwanath Edavayyanamath (Sr. Technical

Manager, R&D Services) Shashidhara S G (Senior Technical Leader-R&D Services) Adarsh Jain (Technical Specialist- R&D Services) Roli Kumar (Senior Test Engineer - R&D Services) Under the guidance of Dr. Vijaya Kumar B.P.(HOD, dept of Comp Sc.) Mr. Mylara Reddy (Prof, dept of Info Sc.)

The proposed application is developed by Ravi Kant Soni (B.E- Information Science & Engineering) Swetha B R (B.E- Information Science & Engineering) Roshni G N(B.E- Information Science & Engineering)

Project Objectives

To develop an automation bench using iWAL where all the common controls and some activeX controls are automated. To develop a front end to load and run the test scripts and master files that contain link to one or more test scripts.

ABSTRACT

The proposed project “GUI Testing Automation” involves the Automated testing of the different applications developed using VC++ and COM.

Automation of common ActiveX controls and its functionality like gridctrl, editbox, buttons, etc.

Automation of the controls is done using Active perl / iWAL Library.

The idProperty & nameProperty is used for the automation of the Different controls.

iWAL LIBRARY

iWAL (Windows Automation Library) is a framework used for UI Automation Testing.

iWAL is a product of MINDTREE & is developed using .NET and VC++.

iWAL provides a programmatic access to most user interface elements on desktop.

iWAL provides wrapper functions to gather information about UI and perform actions on control.

It is easy to integrate iWAL with any framework as it is in the form of library file.

iWAL LIBRARY

SOFTWARE REQUIREMENT SPECIFICATION

PLATFORM:

Windows OS

LIBRARIES:

Win32::GUI module (For Perl)

iWAL (For .NET)

TOOLS & SOFTWARE:

Microsoft Visual studio 2005Crystal ReportsActive PerlWinspy ++

HARDWARE:

Pentium IV , 3.2GHz1 GB RAM40 GB Hard Disk

WORK FLOW DIAGRAM

System Architecture

Block Diagram ( Dialog Box )

// iWAL library

Block Diagram (Grid Application)

Interaction with activeX controls

ActiveX controls are embedded in the container application .

Programmer uses wrapper classes of those controls to call methods.

Create a message map for the parent window so that it calls the wrapper class methods of the control when it gets the message

No communication between the script and the instance handle of that control. Instead parent window is used.

WORK-FOLW OF WINDOW-APPLICATION

DATA-BASE

Report buttonto

Generate crystal report

// iWAL library

What is being Tested

( unit , module , subsystem ,

Application System…)

INPUT OUTPUT

Oracle

“Correct” Output

“Compare”

Pass / Fail

WORK-FLOW FOR TESTING

Find the instance handle of the control

Bring it to foreground (Enable it)

Send message to the window with parameters

Check the result

Display the result

Interaction with Common Controls

MFCAPPLICATIONS

FOR GUI-TESTING

BAR CHART CTRL

CALCULATOR APPLICATION

TESTGRID APPLICATION

ADD – SUBTRACT – MULTIPLY - DIVIDE

GUITESTING

AUTOMATION USING iWAL

LIBRARY

AUTOMATION OF BARCHART CTRL USING iWAL

AUTOMATION OF CALCULATOR APPLICATION USING iWAL

AUTOMATION OF GRID APPLICATION USING iWAL

AUTOMATION OF ADD-MFC APPLICATION USING iWAL

AUTOMATION OF SUBTRACT-MFC APPLICATION USING iWAL

AUTOMATION OF MULTIPLY-MFC APPLICATION USING iWAL

AUTOMATION OF DIVIDE-MFC APPLICATION USING iWAL

WINDOWAPPLICATION

FOR AUTOMATION

WINDOW-APPLICATION

The window-application contains all the previously automated applications.

Window-application contains options of Run, Add, Remove, Schedule, Reports, Help, Exit, etc..

To Run & schedule various automated applications

Generation of reports.

Send a report to mail using smtp-port.

iWAL AUTOMATION WINDOW APPLICATION

BROWSE-BUTTON to browse an application for automation

ADD-BUTTON to add application in listbox for automation

RUN_BUTTON with multitasking to perform automation

RUN_BUTTON with multitasking to perform automation

SCHEDULE_BUTTON with multitasking to schedule automation

REPORT-BUTTON to generate CRYSTAL-report

SENDMAIL-BUTTON to send report to mail using smtp-server

iWAL AUTOMATION HELP PAGE

Jan(from 14th) Feb Mar Apr(upto 3rd) Apr(upto 22) May(upto 03) May(upto 15)0

10

20

30

40

50

60

70

80

90

100

ProgressRisksDependencies

PROGRESS STATUS OF OVERALL WORK

Our future RESEARCH

work…..

#

In the field of network, we can verify many Nodes and discard unauthorized access

Research Idea 1

Research Idea 2

Enhancement of iWAL library

Knowledge Gained

PROCESS LEVEL :

Learned how the project is planned and how the team is prepared for doing project

Preparing documents in industrial level

Exposure on testing process

Formal communications with stakeholders

TOOLS AND TECHNOLOGY:

Hold on scripting language such as PERL /C# has improved

Exposure to VC++ , MFC, ASP.NET, ADO.NET, SMTP-Port

Using Visual studio for programming using iWAL library

Automated testing process

ActiveX controls Interfaces and methods

Knowledge Gained

Thank YouTEAM:

GUITESTING

AUTOMATION

Questions…...