48
WELCOME GUI TESTING AUTOMATION

Gui automation framework

Embed Size (px)

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

Page 1: Gui automation framework

WELCOME

GUITESTING

AUTOMATION

Page 2: Gui automation framework

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)

Page 3: Gui automation framework

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.

Page 4: Gui automation framework

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.

Page 5: Gui automation framework

iWAL LIBRARY

Page 6: Gui automation framework

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

Page 7: Gui automation framework

SOFTWARE REQUIREMENT SPECIFICATION

PLATFORM:

Windows OS

LIBRARIES:

Win32::GUI module (For Perl)

iWAL (For .NET)

Page 8: Gui automation framework

TOOLS & SOFTWARE:

Microsoft Visual studio 2005Crystal ReportsActive PerlWinspy ++

HARDWARE:

Pentium IV , 3.2GHz1 GB RAM40 GB Hard Disk

Page 9: Gui automation framework

WORK FLOW DIAGRAM

Page 10: Gui automation framework

System Architecture

Page 11: Gui automation framework

Block Diagram ( Dialog Box )

// iWAL library

Page 12: Gui automation framework

Block Diagram (Grid Application)

Page 13: Gui automation framework

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.

Page 14: Gui automation framework

WORK-FOLW OF WINDOW-APPLICATION

DATA-BASE

Report buttonto

Generate crystal report

// iWAL library

Page 15: Gui automation framework

What is being Tested

( unit , module , subsystem ,

Application System…)

INPUT OUTPUT

Oracle

“Correct” Output

“Compare”

Pass / Fail

WORK-FLOW FOR TESTING

Page 16: Gui automation framework

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

Page 17: Gui automation framework

MFCAPPLICATIONS

FOR GUI-TESTING

Page 18: Gui automation framework

BAR CHART CTRL

Page 19: Gui automation framework

CALCULATOR APPLICATION

Page 20: Gui automation framework

TESTGRID APPLICATION

Page 21: Gui automation framework

ADD – SUBTRACT – MULTIPLY - DIVIDE

Page 22: Gui automation framework

GUITESTING

AUTOMATION USING iWAL

LIBRARY

Page 23: Gui automation framework

AUTOMATION OF BARCHART CTRL USING iWAL

Page 24: Gui automation framework

AUTOMATION OF CALCULATOR APPLICATION USING iWAL

Page 25: Gui automation framework

AUTOMATION OF GRID APPLICATION USING iWAL

Page 26: Gui automation framework

AUTOMATION OF ADD-MFC APPLICATION USING iWAL

Page 27: Gui automation framework

AUTOMATION OF SUBTRACT-MFC APPLICATION USING iWAL

Page 28: Gui automation framework

AUTOMATION OF MULTIPLY-MFC APPLICATION USING iWAL

Page 29: Gui automation framework

AUTOMATION OF DIVIDE-MFC APPLICATION USING iWAL

Page 30: Gui automation framework

WINDOWAPPLICATION

FOR AUTOMATION

Page 31: Gui automation framework

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.

Page 32: Gui automation framework

iWAL AUTOMATION WINDOW APPLICATION

Page 33: Gui automation framework

BROWSE-BUTTON to browse an application for automation

Page 34: Gui automation framework

ADD-BUTTON to add application in listbox for automation

Page 35: Gui automation framework

RUN_BUTTON with multitasking to perform automation

Page 36: Gui automation framework

RUN_BUTTON with multitasking to perform automation

Page 37: Gui automation framework

SCHEDULE_BUTTON with multitasking to schedule automation

Page 38: Gui automation framework

REPORT-BUTTON to generate CRYSTAL-report

Page 39: Gui automation framework

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

Page 40: Gui automation framework

iWAL AUTOMATION HELP PAGE

Page 41: Gui automation framework

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

Page 42: Gui automation framework

Our future RESEARCH

work…..

Page 43: Gui automation framework

#

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

Research Idea 1

Page 44: Gui automation framework

Research Idea 2

Enhancement of iWAL library

Page 45: Gui automation framework

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

Page 46: Gui automation framework

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

Page 47: Gui automation framework

Thank YouTEAM:

GUITESTING

AUTOMATION

Page 48: Gui automation framework

Questions…...