ASP.NET-sovelluskehyksen integraatiotestaus
Vornanen, Mikko (2022)
Vornanen, Mikko
2022
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2022112323650
https://urn.fi/URN:NBN:fi:amk-2022112323650
Tiivistelmä
Sovellukset ovat tulleet osaksi ihmisten normaalia arkea. Pankkipalvelut, sosiaalinen media ja erilaiset varaus- ja maksujärjestelmät ovat vain pieni osa niistä sovelluksista, joita ihmiset käyttävät lähes päivittäin. Yksi tapa parantaa sovellusten toimintaa ja tietoturvaa on testaus, mikä osana ohjelmistokehitystä luo turvaa pyrkimällä varmistamaan, että sovellukset toimivat tarkoitetulla tavalla ja eivät sisällä mahdollisia tietoturvariskejä.
Opinnäytetyössä lähdettiin tutkimaan ja kehittämään testikehystä, jonka avulla voidaan jatkossa kirjoittaa helposti ja nopeasti hyödyllisiä testitapauksia. Testikehys oli tarkoitus ottaa heti käyttöön osaksi ohjelmistokehitysprosessia, mutta tehdä siitä myös helppokäyttöinen, jotta uudet ohjelmistokehittäjät omaksuisivat sen nopeasti. Integraatiotestaus valikoitui testikehyksen testaustasoksi. Integraatiotestien avulla pystyimme testaamaan sovelluksen eri komponenttien toimintaa keskenään minimoimalla simuloitujen objektien määrän. Näin saimme testeistä kestävämpiä muutoksille ja takaamaan varmemman luotettavuuden sovelluksen toimintaan.
Tutkimus- ja kehitystyön pohjalta toteutettiin testikehys, jonka avulla testien kirjoitus on ollut helppoa ja nopeaa. Tätä testikehystä käytettiin kehityksen alusta asti ja siitä on tullut osa kehitysprosessia.
Testikehyksen ovat omaksuneet käyttöönsä myös uudet kehittäjät.
Testikehys on osoittautunut toimivaksi ja hyväksi tavaksi testata sovelluksen eri komponenttien toimintaa keskenään. Testikehyksen avulla kirjoitetut integraatiotestit on havaittu kestäväksi tavaksi testata sovelluksen toimintaa. Testikehys on laajentunut kehityksen alkuvaiheista monta kertaa ja testikehystä voidaankin jatkossa aina laajentaa uusien tarpeiden mukaan. Applications have become part of people's normal everyday life. Banking services, social media and various reservation and payment systems are only a small part of the applications that people use almost every day. One way to improve the operation and security of applications is testing, which as part of software development creates security by trying to ensure that the applications work as intended and do not contain potential security risks.
In the thesis, we started researching and developing a test framework, with which useful test cases can be written easily and quickly in the future. The test framework was intended to be implemented immediately as part of the software development process, but also to make it easy to use so that new software developers would quickly adopt it. Integration testing was selected as the testing level of the test framework. With the help of integration tests, we were able to test the operation of the different components of the application with each other by minimizing the number of simulated objects. In this way, we made the tests more resistant to changes and guaranteed more reliable operation of the application.
Based on the research and development work, a test framework was implemented, which has made writing tests easy and fast. This test framework was used from the beginning of development and has become part of the development process. The test framework has also been adopted by new developers.
The test framework has proven to be functional and an effective way to test the operation of different components of the application with each other. Integration tests written using the test framework have been found to be a sustainable way to test the operation of the application. The test framework has been expanded many times since the initial stages of development, and the test framework can always be expanded in the future according to new needs.
Opinnäytetyössä lähdettiin tutkimaan ja kehittämään testikehystä, jonka avulla voidaan jatkossa kirjoittaa helposti ja nopeasti hyödyllisiä testitapauksia. Testikehys oli tarkoitus ottaa heti käyttöön osaksi ohjelmistokehitysprosessia, mutta tehdä siitä myös helppokäyttöinen, jotta uudet ohjelmistokehittäjät omaksuisivat sen nopeasti. Integraatiotestaus valikoitui testikehyksen testaustasoksi. Integraatiotestien avulla pystyimme testaamaan sovelluksen eri komponenttien toimintaa keskenään minimoimalla simuloitujen objektien määrän. Näin saimme testeistä kestävämpiä muutoksille ja takaamaan varmemman luotettavuuden sovelluksen toimintaan.
Tutkimus- ja kehitystyön pohjalta toteutettiin testikehys, jonka avulla testien kirjoitus on ollut helppoa ja nopeaa. Tätä testikehystä käytettiin kehityksen alusta asti ja siitä on tullut osa kehitysprosessia.
Testikehyksen ovat omaksuneet käyttöönsä myös uudet kehittäjät.
Testikehys on osoittautunut toimivaksi ja hyväksi tavaksi testata sovelluksen eri komponenttien toimintaa keskenään. Testikehyksen avulla kirjoitetut integraatiotestit on havaittu kestäväksi tavaksi testata sovelluksen toimintaa. Testikehys on laajentunut kehityksen alkuvaiheista monta kertaa ja testikehystä voidaankin jatkossa aina laajentaa uusien tarpeiden mukaan.
In the thesis, we started researching and developing a test framework, with which useful test cases can be written easily and quickly in the future. The test framework was intended to be implemented immediately as part of the software development process, but also to make it easy to use so that new software developers would quickly adopt it. Integration testing was selected as the testing level of the test framework. With the help of integration tests, we were able to test the operation of the different components of the application with each other by minimizing the number of simulated objects. In this way, we made the tests more resistant to changes and guaranteed more reliable operation of the application.
Based on the research and development work, a test framework was implemented, which has made writing tests easy and fast. This test framework was used from the beginning of development and has become part of the development process. The test framework has also been adopted by new developers.
The test framework has proven to be functional and an effective way to test the operation of different components of the application with each other. Integration tests written using the test framework have been found to be a sustainable way to test the operation of the application. The test framework has been expanded many times since the initial stages of development, and the test framework can always be expanded in the future according to new needs.