+ All Categories
Home > Technology > Building up test automation from scratch the inno games way

Building up test automation from scratch the inno games way

Date post: 13-Apr-2017
Category:
Upload: rainar-uett
View: 197 times
Download: 0 times
Share this document with a friend
34
Transcript
Page 1: Building up test automation from scratch   the inno games way
Page 2: Building up test automation from scratch   the inno games way

2

Page 3: Building up test automation from scratch   the inno games way

3

Ã  Developerwithobsessionforqualityandautoma7onÃ  HeadofQualityEngineering&QAatInnoGamesÃ  Since2005inonlineentertainmentÃ  Agile,con7nuousdelivery,automa7on

ABOUTMYSELF

hNp://www.linkedin.com/in/rainar@rainary(

Page 4: Building up test automation from scratch   the inno games way

4

AUTOMATEDTESTINGINGAMINGLIKEAMYSTICALUNICORN

Automatedtes7ngofgamesislikethemythicalUnicorn-Everyoneisspeakingaboutit,butnoonehasreallyseenit

Page 5: Building up test automation from scratch   the inno games way

5

IndustryStandardExcusesÃ  No7meÃ  NotoolsGamedevelopersExcusesÃ  ComplexuserinterfacetechnologiesÃ  Heavygamelogic

WHYAUTOMATIONINGAMESHASN’TYETHADITSBREAKTHROUGH

Page 6: Building up test automation from scratch   the inno games way

6

Gamesareso)ware.Ifitispossibletoautomateso)waretes4ngitshouldbepossibletoautomategamestes4ng

Page 7: Building up test automation from scratch   the inno games way

7

SCOPE

Focus

Page 8: Building up test automation from scratch   the inno games way

8

§  Timetomarket§  Dependencytoexternalproviders§  Cost

WHYWEDECIDEDTOSWITCH

Page 9: Building up test automation from scratch   the inno games way

9

WHATWEHAD?

Organisa7on§  QAsi]nginaseparatedroom§  Resourcessharedacrossmul7ple

projects

Skills§  Productexper7se§  Knowhowtes7ngworks§  Curiosity

§  0automatedtests§  1testerwithexperienceofwri7ng

code§  Ratherscep7ca]tudefromthe

products

Page 10: Building up test automation from scratch   the inno games way

10

WHATWEHAD?

Page 11: Building up test automation from scratch   the inno games way

11

WHATWEWANTEDTOHAVE

Page 12: Building up test automation from scratch   the inno games way

12

CHANGES

Understand§  Benefitsofautoma7on§  Gamestech.solu7ons§  Basiccoding

§  Testersworkcloselywithdeveloper

§  Dedicatedtestersforeachproduct

Organisa7on§  QAsi]nginaseparatedroom§  Resourcessharedacrossmul7ple

projects

Skills§  Productexper7se§  Knowhowtes7ngworks§  Curiosity

Page 13: Building up test automation from scratch   the inno games way

13

Businesspeoplecaninterpretnumbers–showthemhowmuch4meorcostarewesaving

WHENNOTEVERYONEISONBOARD

Page 14: Building up test automation from scratch   the inno games way

14

Developersunderstandvaluesofautoma4on,buttheydon’talwaysunderstandthetes4ngprocess–showthemaworkingsolu4onandtheywillembraceit

Page 15: Building up test automation from scratch   the inno games way

15

Benefitsofautoma7onÃ  FasterÃ  CheaperÃ  IncreasecoverageÃ  Moreaccurate

Ã Feedback

WHENEVERYONEISNOTONBOARD

WHENNOTEVERYONEISONBOARD

Page 16: Building up test automation from scratch   the inno games way

16

DEVELOPMENTPROCESSMANUALQA

Featureready?

IntegrateUnittestimplement

Versioncontrol

test

Reproduce

Fix

UserStory

BugFound!

Developmentprocess Testprocess

Page 17: Building up test automation from scratch   the inno games way

17

DEVELOPMENTPROCESSAUTOMATEDQA

Unittest Integrate releaseimplement

Automatedtests

Bugfoun

d

Fix

Featureready!

UserStory

Page 18: Building up test automation from scratch   the inno games way

18

FEEDBACK

Lifecycleofadefect

Developer Tester PM Developer Tester Ops

Manual DevelopCheck-incode

CheckoutTest

OpenbugPriori7zebug Fixbug Retest

Closebug Deploy

Automated

DevelopCheck-incodeAutomated

testFix

Finalchecks Deploy

Page 19: Building up test automation from scratch   the inno games way

19

Ã  Gettheorganisa7onrightÃ  GetthetestersonboardÃ  GeteveryoneelseonboardÃ  Increaseskillsetandawarenessofautoma7on

TAKEAWAYS

Page 20: Building up test automation from scratch   the inno games way

20

Part2–Technicalsolu7ons

Page 21: Building up test automation from scratch   the inno games way

21

Ã  SupportvarietyofUI-s–  Flash–  Cocos2dx

Ã  iOSÃ  Android

–  UnrealEngineÃ  iOSÃ  Android

–  HTML5+AngularJS–  AdobeAir

Ã  Genericsolu7onÃ  Enabledatadriventes7ngÃ  Easytoscript

TECHNICALREQUIREMENTS

Page 22: Building up test automation from scratch   the inno games way

22

AUTOMATIONTECHNIQUES

UIobjectaccess ScreenshotrecogniKon

•  Builtintostandardtechnologies(HTML,na7vemobile)

•  Faster•  Fail-safe•  Dynamic

•  Workseverywhere•  Easytoscript

Ã  Waystoperformautomatedendtoendtes7ng–  UIobjectaccess–  Imagerecogni7on

Page 23: Building up test automation from scratch   the inno games way

23

HOWUIWORKS?

Container

UIObjectUIObject

UIObject

UIObject

UIObject

UIObject

UIObject

xcoordinateycoordinateObjecttype*Value

•  IsObjectpresentonscreen•  Performaninput•  Readobjectvalue•  Changeobjectvalue

Page 24: Building up test automation from scratch   the inno games way

24

SUPPORTINGSEVERALTECHNOLOGIES

GAME1

UIContainer

SELENIUM

Testcloud

Test

Test

Test

Test

Page 25: Building up test automation from scratch   the inno games way

25

SUPPORTINGSEVERALTECHNOLOGIES

GAME1HTML5 UI

Container

SELENIUM

Testcloud

Test

Test

Test

GAME2Cocos2dx UI

Container

PLUGIN1

GAME3UnrealEngine UI

Container

PLUGIN2

Page 26: Building up test automation from scratch   the inno games way

26

SUPPORTINGSEVERALTECHNOLOGIES

Testcloud

Test

Test

Test

GAME2Cocos2dx UI

Container

PLUGIN1

GAME3UnrealEngine UI

Container

PLUGIN2

Proxy

Page 27: Building up test automation from scratch   the inno games way

27

Help–I’vecreatedmyfirst200testsandI’mspendingmostofmy4memaintainingit?

Page 28: Building up test automation from scratch   the inno games way

28

Ã  Modelesapplica7onundertestaspagesÃ  ReducestestcodeÃ  TestsmorereadableÃ  Easiermaintenance

PAGEOBJECTSPATTERN

Webpages

Testframework

LoginPage

Registra7onPage

LoginTest

Page 29: Building up test automation from scratch   the inno games way

29

SAMPLETESTCODE

packagecom.innogames.qa.iforge.tests.ba(le.campaignmap;importcom.innogames.qa.iforge.testcommon.SimpleTestTemplateWithLogin;importnet.thucydides.core.annotaKons.WithTagValuesOf;importorg.junit.Test;/***ThistestchecksifArmyManagementwindowcanbeopenedproperlyonthecampaignmap*/@WithTagValuesOf({"feature:BaNle","story:CampaignMap","level:Smoke"})publicclassFOE1363extendsSimpleTestTemplateWithLogin{@TestpublicvoidopenArmyManagementWindowFOE1363(){player.atCityScreen().clicksExpandBuNonInMainMenu();player.atCityScreen().clicksArmyManagementBuNon();player.atArmyManagementPage().shouldSeeArmyManagementWindow();player.atArmyManagementPage().clicksCloseBuNon();}}

Page 30: Building up test automation from scratch   the inno games way

30

TIMELINE

2013 20152014~200testsw

ri(en

~1500autom

ated

testcases

~2500autom

ated

testcases

Trainings

Firstsmok

etestsp

rojects

010203040506070809101112 010203040506070809101112 010203040506070809101112

Page 31: Building up test automation from scratch   the inno games way

31

Ã  Startwiththeeasiestsolu7onÃ  Donotkeeplookingfortheperfecttool–thereisnoneÃ  Takingcareaboutautoma7ontoolsbuildingandtrainingsisafull7mejobÃ  Buildatoolforyourtesters,notforyourself

TECHNICALSOLUTION-TAKEAWAYS

Page 32: Building up test automation from scratch   the inno games way

32

Ã  Automa7onisapplicablefortes7nggamesÃ  BreakingawayfromtheoldmindsetmightbedifficultTosucceed:Ã  Createaorganisa7onalstructurethatsupportsautomatedtes7ngÃ  Makesureeverybodyunderstandsthevaluesaddedbyautoma7onÃ  Therearenoperfecttechnicalsolu7onforanyofthedomain,youhavetomakethem

work!

CONCLUSION

Page 33: Building up test automation from scratch   the inno games way

33

Q&A

Q&A

hNp://www.linkedin.com/in/rainar@rainary(

Page 34: Building up test automation from scratch   the inno games way

34

ThankYou!

Q&A

hNp://www.linkedin.com/in/rainar@rainary(


Recommended