An Automation Framework for Everyone

Preview:

Citation preview

1

Strategic Talent Management 1

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

An Automation Framework for Everyone

Wednesday May 6th, 11:30am Presented by: Chris Loder

Strategic Talent Management 2

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

• Who, what, where…

• Abstraction Layer

• Config files

• Our State Machine

• Using conditions

• Our version of key word approach

− Test Case Example

− Page object Example

• Getting Results

• Questions

Agenda

2

Who, what, where…

Strategic Talent Management 4

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Who?

• Who am I?

−I am the guy between you and

lunch!

3

Strategic Talent Management 5

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

5

Industry leader in customer satisfaction

>450Employees

Growing Global Employee Base

>2,000Customers

Growing Global Customer Base

Customer Successes

What?Halogen: Industry Leader in Talent Management Systems

Strategic Talent Management 6

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Where?

• Where is our Framework used?

−Everywhere in product development

� Automation Developers

� Manual QA

� Product Developers

4

Abstraction Layer

Strategic Talent Management 8

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Abstraction Layer

• Why we did it?

− No more rewriting test cases just because the tool has changed!

• Pros

− Makes the framework more robust and gives us the control of what

to expose to our automation developers

− Developers get used to using Halogen’s Framework objects versus

Selenium's

− Ability to change tools is just a handful of classes away

• Cons

− Adds extra maintenance

− We have to be the keepers of all new functionality

5

Strategic Talent Management 9

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Abstraction Layer

Config Files

6

Strategic Talent Management 11

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Config Files

• Pros

− Flexibility

− Essentially a command line extension

− Extra runtime validation

• Cons

− An extra layer

− Can get out of sync with the framework

• Example

Strategic Talent Management 12

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

7

Our State Machine

Strategic Talent Management 14

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Our State Machine

• Used to handle the “State” of the

element we are working with to

determine successful execution of the

given action.

• Unknown, Element Found, Validating

and Unstable.

• Makes use of our element conditions.

8

Using Conditions

Strategic Talent Management 16

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Using Conditions

• Why we have them?

−Stability

− Used and “inline” validation. Particularly

with navigation calls

−We can assign multiple conditions to an

element

−State Machine vs “Wait for Condition”

− Examples….

9

Strategic Talent Management 17

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Using Conditions

Our version of the Keyword

Driven approach

10

Strategic Talent Management 19

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Our version of the keyword driven approach

• Why?

− Known proven practice

− Speedier automated test case authoring

− Allows just about anyone to write an automated test

• Our approach is page.action

� Basically what page you are on in the application and then what

action you would like to perform on that page

� Examples:

o Responding.goToAdmin();

o Admin.goToCompensation();

o Compensation.openBudgetDefinition(budgetName)

o BudgetDefinition.setBudgetValue(value)

Strategic Talent Management 20

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Test Case Example

11

Strategic Talent Management 21

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Test Case Example - Continued

Strategic Talent Management 22

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Page Class Example

12

Strategic Talent Management 23

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Page Class Example - Continued

Getting results

13

Strategic Talent Management 25

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Getting results

• Why we wrote our own results manager

− Control

− Easily allows us to send out different result types

− Extendibility

• What we get from it

− Logs

− Test Case Management Tool (APTest / Zephyr)

− XML

− CSV

− Perf

− FancyOutput

Strategic Talent Management 26

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Getting results

14

Strategic Talent Management 27

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Getting results

Strategic Talent Management 28

© 2015 Halogen Software Inc. Confidential – Not to be used, copied or redistributed without Halogen’s prior written permission.

Getting results

FancyOutput.html

15

Questions?