1 research outputs found

    Testausautomaatio Robot Frameworkillä

    Get PDF
    Ohjelmistotestaus on tärkeä osa ohjelmistokehitystä, ja testausautomaatio tuo testaukseen tarkkuutta ja toistettavuutta. Testausautomaation tarjoamat hyödyt ovat houkuttelevia erityisesti jatkuvaa testausta vaativissa ohjelmistoprojekteissa. Sen implementointi vaatii resursseja, mutta pitkällä aikavälillä voidaan saavuttaa merkittäviä säästöjä. Tämän työn tavoitteena oli pilotoida Robot Frameworkin käyttöä kansainväliseen PerkinElmer-teknologiakonserniin kuuluvan Wallac Oy:n ohjelmistotuote LifeCycle 5.1:n testauksessa. Robot Framework on hyväksyntätestaukseen tarkoitettu ohjelmistokehys, jonka avulla testattava ohjelma LifeCycle 5.1 on raskausajan seulontalaboratorioihin tarkoitettu datanhallintatyökalu. Työn toteutus aloitettiin tutustumalla Robot Frameworkin käyttöön ja asentamalla paikallinen testiympäristö. Toteutuksessa hyödynnettiin verkkoselaimen ohjauksen mahdollistavaa testikirjasto Selenium2Libraryä yhdessä Robot Frameworkin kanssa. Pilotointi toteutettiin kirjoittamalla LifeCycle 5.1:n käyttöliittymää testaavia testitapauksia, jotka hyödyntävät Robot Frameworkin erilaisia ominaisuuksia. Yhdeksi testitapaukseksi määritettiin myös potilasdatan syöttö dataa generoivasta Excel-tiedostosta, joka toteutettiin luomalla datahallintatyökalu pandasia hyödyntävä testikirjasto. Työn tuloksena saatiin erilaisia testitapauksia, joita voidaan hyödyntää jatkokehityksessä ja pilotoinnin laajennusvaiheessa. Toteutettu Excel-tiedostosta testidataa lukeva testitapaus on lähes sellaisenaan mahdollista ottaa käyttöön ja lisätä jatkuvan integraation järjestelmään. Robot Frameworkin havaittiin olevan tehokas testausautomaatioprosessin luomiseen soveltuva työkalu ja sen syntaksin mahdollistavan selkolukuisten testitapausten kirjoittamisen melko vaivattomasti. Työlle asetetut tavoitteet toteutuivat, mutta testausautomaatioprosessin luonnin kannalta tärkeä testitapausten lisääminen jatkuvan integroinnin järjestelmään jätettiin pois sen vaatiman laajuuden vuoksi.Software testing is an important part of software development and the use test automation provides test cases with accuracy and repeatability. The benefits of test automation are appealing especially for software projects that require continuous testing. The implementation of a test automation process requires resources but significant savings can be achieved in the long run. The purpose of this thesis was to pilot the use of Robot Framework by utilising it for test automation with the LifeCycle 5.1 software. Robot Framework is a test automation framework for acceptance testing. LifeCycle 5.1 is made by Wallac which is a part of multinational corporation PerkinElmer. The thesis execution was started by familiarising with the use of Robot Framework and creating a local development environment. The Robot Framework library Selenium2Library which enables the controlling of web browsers was used in the execution. The pilot was executed by writing test cases for testing the user interface of LifeCycle 5.1 that utilise the different expandable properties of Robot Framework. A specified test case to extract patient data from an Excel file was written by creating a library that utilises the pandas data management library toolkit. The results of this thesis were different test cases that can be utilised in the development process of future test cases and the continuation of the test automation pilot project. The test case for inputting data from the Excel file can be almost directly used for testing when Robot Framework is implemented to a continuous integration system. Robot Framework was found to be a powerful and a suitable tool for the creation of a test automation process. Its syntax provides easy readability and test cases can be written quite effortlessly. The objectives of this thesis were achieved although the continuous integration implementation, while being an important part of a test automation process creation, was left out of this thesis work due to its needed extensiveness
    corecore