Você está na página 1de 18

eGain Automation

eGain Confidential

6 August 2013

eGain Communications Corporation. All Rights Reserved.

Need for Automation

Increased

Efficiency

Script once and run on multiple browsers

Speed

Quality

Reduces the mundane tasks

Continuous Integration

eGain Communications Corp. All rights reserved.

Automation

Re-usability

Modularity

One library

multiple browsers

Multiple servers

Data-driven

Localization needs

eGain Communications Corp. All rights reserved.

Choosing the right tool for Automation!

Issues faced:

Not pure HTML

Not pure Java

Java Applet and HTML combined

Need a tool that recognizes both Java and HTML

eGain Communications Corp. All rights reserved.

Issues faced (Contd)

eGain Communications Corp. All rights reserved.

Tools Evaluated

QFT

Squish

QTP

Ranorex

Out-of-box recognition of eGain custom Applets using co-ordinates

eGain Communications Corp. All rights reserved.

Ranorex

Object / Image based recognition

Record / Reply

Code Modules

C# / VB

Data Connectors

Excel

CSV

Simple data table

Database

eGain Communications Corp. All rights reserved.

eGain Source Code Changes

Tree plugin

getTreeNodeIconAreaCoords

getTreeNodeStringAreaCoords

getNodeFromName

CL plugin

getCellCoordsTopLeft

getCellCoordsFromName

getValueCellCoordsFromName

getCellCoordsCenter

getRadioButtonCoordsForRow

eGain Communications Corp. All rights reserved.

Ranorex Library/Test Suite Structure

Libraries

Common Library

Library for individual Consoles

Individual Libraries have reference to the common library

TestSuites

Documentation

Reference to all the necessary libraries

Using DOxygen

SVN Location
http://thevault.egain.com/svn/eGainService/QA/trunk/RanorexTestAutomation/

eGain Communications Corp. All rights reserved.

Ranorex Libraries

350+ libraries

databaseLibrary

egainAdminConsoleLibrary

egainAgentConsoleLibrary

egainChatbotLibrary

egainCommonLibrary

egainKnowledgebaseLibrary

egainOffersConsoleLibrary

egainSocialConsoleLibrary

egainSystemConsoleLibrary

egainVideoChatLibrary

emailLibrary

Ease of use for end users

eGain Communications Corp. All rights reserved.

Ranorex Documentation

Generated using DOxygen

eGain Communications Corp. All rights reserved.

Ranorex Smoke TestSuite

Smoke (Rejection) TestSuite in Qmetry


eGain Service -> Automation -> V11
67 Qmetry TestCases

150 Ranorex TestCases

eGain Communications Corp. All rights reserved.

Continuous Integration

Hudson

Kick off the Tests for nightly builds

QMetry

View the Test results

eGain Communications Corp. All rights reserved.

Continuous Integration

eGain Communications Corp. All rights reserved.

Hudson and QMetry Integration

Automation Machine pund527

QMetry Agent running on pund527

QMetry Scheduler from Hudson

LogFileAnalyzer

FitNesse

Completed
BaseData created using Ranorex

Ranorex

Results updated in QMetry

eGain Communications Corp. All rights reserved.

Exercise

Launch eGain

Login To Offers Console by PA user

Create a offers web page

Create an Offer

Edit the web page and add the offer to the web page.

eGain Communications Corp. All rights reserved.

Questions?

eGain Communications Corp. All rights reserved.

Questions?

eGain Communications Corp. All rights reserved.