Geri Dön

TEST CASE PRIORITIZATION FOR EMBEDDED SOFTWARE

GÖMÜLÜ YAZILIM TESTLERİNİN ÖNCELİKLENDİRİLMESİ

  1. Tez No: 1027418
  2. Yazar: ELİF GÜŞTA ÖZER
  3. Danışmanlar: DOÇ. DR. FEZA BUZLUCA
  4. Tez Türü: Yüksek Lisans
  5. Konular: Bilgisayar Mühendisliği Bilimleri-Bilgisayar ve Kontrol, Computer Engineering and Computer Science and Control
  6. Anahtar Kelimeler: Belirtilmemiş.
  7. Yıl: 2024
  8. Dil: İngilizce
  9. Üniversite: İstanbul Teknik Üniversitesi
  10. Enstitü: Lisansüstü Eğitim Enstitüsü
  11. Ana Bilim Dalı: Bilgisayar Mühendisliği Ana Bilim Dalı
  12. Bilim Dalı: Bilgisayar Mühendisliği Bilim Dalı
  13. Sayfa Sayısı: Belirtilmemiş.

Özet

Gömülü kontrol sistemleri, otomotiv, havacılık, tıbbi alanlar gibi birçok farklı endüstride kullanılırlar. Bu sistemler donanım ve yazılım elemanlarından oluşur. Donanım ve yazılım elemanlarına örnek olarak mikro denetleyiciler, sensörler, aksiyonlar, giriş / çıkış arayüzleri ve gömülü yazılımlar verilebilir. Mikro işlemciler belirli faaliyetleri gerçekleştirmek için giriş ve çıkış arayüzlerini kullanırlar. Gömülü yazılımlar da bu mikro işlemciler üzerinde çalışır. Gömülü yazılımların görevi tüm ilgili alt sistemlerden gelen verileri alıp yorumlamak ve bu yorumlara bağlı belirli alt sistemlere yapması gereken işlevleri iletmektir. Günümüzde kullanılan yazılımlar birden fazla ihtiyacı tek bir uygulama üzerinden karşılayacak şekilde tasarlanmaktadır. Bu durum yazılımın aynı anda kodlanması mümkün olmayan çok sayıda parçadan oluşmasına sebep olmaktadır. Bu parçaların herbirinin hatasız şekilde çalıştığının test edilmesi gerekmektedir. Öncelikle değişiklik yapılan tüm parçalar tek tek test edilir. Bir sonraki adım ise tek tek test edilen parçaların hepsinin beraber çalıştığı diğer parçalar ile hatasız çalıştığının test edilmesidir.Tüm bu tester sırasında amaç yazılımın kendisinden beklenilen işlevleri yerine düzgün getirdiğinin doğrulanmasıdır. Bir yazılımın herhangi bir parçasında değişiklik olduğunda o yazılımın diğer parçalarının da tekrar test edilmesi gerekmetedir. Bunun sebebi değişiklik yapılan parçanın yazılımın diğer kısımlarında hataya sebep olup olmadığının da kontrol edilmesi gerekliliğidir. Bu test yöntemine regresyon testi adı verilir. Regresyon testleri için 4 farklı yöntem tercih edilmektedir. Bu yöntemler tüm testlerin tekrar koşulması, testlerin azaltılması, testlerin seçimi ve testlerin önceliklendirilmesi işlemidir. Tüm testlerin tekrar test edilmesi yöntemi fazla maliyetli bir yöntem olabilmektedir. Yazılımlar büyüdükçe onlara ait olan test senaryo sayıları da artmaktadır. Bu artış sebebiyle tüm testlerin koşulması için gereken süre de artmaktadır. Diğer 3 yöntem de bu artan maliyeti daha optimize şekilde yönetebilmek için önerilmiştir. Testlerin azaltılması ve seçilmesi yöntemlerinde tüm testler koşulmaz. Burada belirli yöntemlere dayalı testler içersinden azaltma ile sadece berlili testler koşulur ya da seçme ile testler tek tek tüm test kümesinden seçilir ve sadece seçilenler koşulur. Testleirn önceliklendirilmesinde ise testler belirli ilemlere bağlı sıralanarak koşulur. Bu yöntemde tüm testler koşulurken amaç hata bulma olasılığı olan testlerin daha önce koşulması ve bu sayede zamandan kazanç sağlanmasıdır. Bu tezin amacı, gömülü yazılımlar için hazırlanan yazılım testlerinin önceliklendirilmesi yöntemini kullanarak tüm testlerden hata bulma ihtimali olan testleri, tüm test koşma sürecinin erken safhalarında koşabilecek şekilde sıralamaktır. Bu amaç için dört ana adım kullanılmıştır. Gömülü yazılımların ve ilgili testlerin genel özelliklerinin belirlenmesi, yazılıma ait her versiyon için hazırlanan testlere özel birer veri seti oluşturulması, oluşturulan veri setlerinde de kullanılan özelliklerden puan hesaplamasında kullanılacak puan özelliklerinin(SFs) seçilmesi ve testlerin belirlenen puan değerlerine göre sıralanmasıdır. İlk olarak testlere öncelik vermek için bu tezde verileri kullanılacak olan gömülü yazılım ve testlerinin genel özellikleri belirlenmiştir. Bu özellikler şunlardır: TestAdı, TestinKoşulduğuSürüm, TestSüresi, Yaş, HataOranı, TestteKullanılanAltSistemSayısı, Altsistemler, AltsistemAdı, BaglıAltsistemeAitKaçSenaryoİçerdiği, BağlıAltSistemeAitSenaryolardanKaçındaHata, AltsistemdeYapılanDeğişiklikSayısı, TestteGöderilenToplamMesajSayısı, TestteAlınanToplamMesajSayısı, HatalıParametreSayısı, TümHatalardanBuTestteHatalıOlanlar, HataID , HataDurumu, TestDurumu, Mesajlar, MesajAdı, Alıcı, Verici, PeriyodikDurumu, ParametreSayısı, ListeParametreSayısı, KullanılanModlar, MesajGönderimKuralSayısı, İletildiğiDiğerAltsistemSayısıdır. Belirlenen özellikler tüm gömülü yazılımlarda bulunabilir özelliklerdir. Bu özellikleri aynı zamanda bu gözmülü yazılıma ait olan yazılım testlerinin içerisinde de bulur. Burada bu yazılıma ait her bir versiyon için hazırlanan tüm testler toplanır ve her versiyona özel birer veri seti oluşturmak için kullanılır. Hazırlanan veri setleri testlerin önceliklendirmesi için test bazında hesaplanacak olan test puanı hesaplamasında kullanılmıştır. Bu veri setleri belirlenen özelliklerinin her test için bulunan değersel karşılıklarını içermektedir. Belirlenen tüm özellikler puan hesaplamasına katılmaz. Bazı özellikler, test adını ya da versiyonunu, testin içerdiği mesajlarının adını v.b. temel ve puanlamaya katkısı olmayacağı düşünülen özellikleri belirtmek için varken, bazısı ise önceliklendirme sonrası sıralanan testlerin ne kadar etkili bir sonuç verdiğini değerlendirmek için kullanılan değerlendirme metriklerine girdi olarak verilen özelliklerdir. Bu özellikler hariç diğer özellikler test puanı hesaplaması işleminde kullanılmıştır. Bu puanlama işlemi için belirlenen özellikler tez içerisinde puan özellikleri (SFs) olarak adlandırılmıştır. Puanlama için kullaılacak olan puan özellikleri(SFs) oluşturulan veri seti içerisinde yer alır. Toplam puan değerinin hesalanması için bu veri seti ve özellik bazı atanan puan değerleri kullanılır. Puan değerlerinin atamasında her bir özellik için eşit aralıklarla artacak ya da azalacak şekilde bir normalizasyon işlemi yapılır. Tüm özelliklerin puanlamadaki ağırlığı eşit değerde kabul edilir ve normalizasyon işlemi 0 ile 1 arasında yapılır. Puan özelliklerine atanabilir değerler ikiye ayrılır. Bu değerler sayısal ve kategorik değerlerdir. Sayısal özelliklere score değeri iki farklı şekile atanır. Puanlama işlemi, puanlama özelliklerinin testler içerisinde alabileceği min ve max değerlere göre hesaplanır. Bunlardan sayısal değer atanabilen puan özelliklerine puan değeri atama işlemi özelliğe ait belirlenen min ve max değerler arasında azalan veya artan aralıklarda belirli değerlerin atanarak en iyi sıralamayı veren puanlamanın bulunması şeklindedir. Kategorik olan özelliklerde ise puan değerleri 0 ile 1 normalizasyonuna uygun olacak şekilde kullanıcı tarafından verilmektedir. Bu tez içerisinde öncelikle belirlenen puan özelliklerinin tek tek kullanılması ile test sıralaması sonucuna etkisi incelenmiştir. Tek tek her bir puan özelliğinin test sıralamasında en iyi sıralamayı veren normalize değerlerinin tümü belirlenmiştir. Sonrasında ise bu normalize değerler tüm puan özelliklerin aynı anda test sıralamasına etkisini gözlemlemek için de kullanılmıştır. Aynı zamanda tüm puan özellikleri için en iyi sıralamayı verdiği belirlenen normalize değerler kullanılarak yazılıma ait olan diğer versiyonlar için de test önceliklendirmesi işlemi yapılmıştır. Bu işlemin amacı yazılıma ait belirlenen özellikler için ortak bir puanlama yöntemi ile testlerin önceliklendirmesi işleminde iyi sonuçlar elde edip edemeyeceğimizi gözlemlemekti. Bu kapsamda tez içerisinde verileri kullanılan gömülü yazılıma ait 4 versiyon için hazırlanan testler de test önceliklendirmesi işlemine tabi tutulmuş ve sonuçları da kıyaslanmıştır. Farklı versiyonların önceliklendirilmesinde kullanılan puan değerleri son versiyon için hesaplanan puanlardır. Bu yöntemdeki amaç belirlenen puan ve özellik eşleştrimelerinin genellenebilir olup olmadığını gözlemlemektir. Sonuçlara bakıldığında en iyi önceliklendirme işlemi sonuçlarını son versiyon için alındığı gözlemlenmiştir. Önceliklendirme sonuçlarının değerlendirilmesi için APFD (ortalama hataların tespit oranı) ve APFDc (orta maliyetlere göre tespit edilen hataların oranı), metrikleri kullanılmıştır. APDF metriği tüm testleri ve onlardan bulunan hataları eşit öneme sahip olarak düşünerek sonuç vermektdir. APFDc metriğinde ise her test ve onlardan elde edilen hatalar farklı ağırlıklara sahip olabilmektedir. Bu çalışmada APFDc için her testin maliyet değerini her testin koşulma test süresi olarak ve testlerde belirlenen her hata için maliyet değerleri yazılım test mühendisi tarafından hatanın kullanıcıya etkisi göz önünde bulundurularak belirlenmiştir. Tüm sonuçlar incelendiğinde deneysel süreçte en etkili puan unsurlarının belirlenmesiyle, testlerin önceliklendirilmesi işlemiyle test sırasında hataların erken belirlenmesi konusunda puan özellikleri sayesinde iyileştirmeler sağlanabilmektedir.

Özet (Çeviri)

Embedded control systems are used in many different industries such as automotive, aerospace, and medical fields. These systems consist of hardware and software elements. Examples of hardware and software elements are microcontrollers, sensors, actuators, input/output interfaces and embedded software. Microprocessors use input and output interfaces to perform certain activities. Embedded software also runs on these microprocessors. The task of embedded software is to receive and interpret data from all relevant subsystems and to transmit the functions that need to be performed to certain subsystems based on these interpretations. The software used today is designed to meet multiple needs through a single application. This situation causes a large number of parts that cannot be coded at the same time. Each of these parts must be tested for error-free operation. For this, all parts are first tested one by one. The next step is to check that all of the individually tested parts work together without error and fulfill the expected functions properly. When any part of a software is changed, other parts of that software should be tested again. This is because it is necessary to check that the changed part does not affect other parts of the software. This test method is called regression testing. Regression testing is a type of testing that involves four main methods. These methods are retesting all, test case reduction, test case selection, and test case prioritization.As the software grows, the quantity of test cases rises. As a result of this increase, the duration needed to execute all tests also increases. The remaining three approaches are suggested to efficiently handle this increasing expense. During test reduction and selection procedures, only a subset of test casess are executed. There are two ways to improve the testing process: either by applying specific criteria to reduce the number of test cases that need to be run, or by manually picking individual test cases from the entire test set and just running the selected ones. Test prioritization involves executing test cases in a specific sequence according to established methods. This approach involves executing all test cases, with the objective of prioritizing the tests that are more likely to identify defects in order to optimize time. This thesis aims to use the prioritization of software test cases for embedded software to find the faulty test cases from all test cases earlier than the whole testing process. Four main steps are used for this purpose. Determining the general characteristics of embedded software and related test cases, creating a dataset specific to the test cases prepared for each version of the software, selecting score features (SFs) to calculate the score with the help of the test cases from the created datasets, and ranking the test cases according to the determined score values. First, to prioritize the test cases, the general characteristics of the embedded software and tests whose data will be used in this thesis were determined. The determined features are TestName, VersionOfSoftware, TestTime, Age, ErrorRate, UsedSubsyatemCount, SubsystemName, CountOfSubsystemScenario, ErrorCountOfSubsystemScenarios, CountOfScenarioChangeMade, TotalSendMessageCount,TotalReceivedMessageCount, TotalParameterCountWhichContainError, FaultsFoundedInThisTestCaseFromAllFaults, ErrorID, ErrorStatus, TestResult, Messages, MessageName, Receiver, Sender, IsPeriodic, CountOfParameter, CountOfListParameter, UsedModes, CountOfMessageRule, CountOfOtherSubsystemWhichMessageSend. These features can be found in all embedded software or test cases of it. All test cases prepared for each version of this software are collected and used to create a dataset specific to each version. These datasets are used to calculate the test score on a test-by-test basis for prioritization of the test cases. These datasets contain the value equivalents of the identified traits for each test case. Only selected features are considered in the score computation. Some features serve to denote the test name or version, as well as the names of the messages included in the test. These features are considered fundamental and do not impact the overall score. On the other hand, other features are utilized as inputs for the evaluation metrics, which assess the effectiveness of the tests after prioritization. All features, except for these, were used in the process of calculating the test scores. In this thesis, features identified for this scoring method are denoted as score features (SFs). The dataset contains score features. A normalizing method is carried out for every feature to give normalized score values that increase or decrease at equal intervals. All features in the score are given equal weight, and normalization is performed within the range of 0 to 1. The possible values that may be applied to score features are categorized into two groups. These values are numerical and categorical. The scoring procedure is determined based on the minimum and maximum values that the scoring features may have throughout the test cases. The process of providing a numerical score value to features involves determining the scoring system that yields the most optimal ranking. This is achieved by assigning specific values within a range that decreases or increases between the minimum and maximum values found for the feature. The score values for the categorical variables are provided by the user following normalization that ranges from 0 to 1. The reason for this is the user can provide more effective information about some parts of the software. This thesis examines the influence of separately using the score attributes on the result of the test case prioritization. During the test case prioritization, the normalized score of each feature was determined to be the feature that produced the greatest prioritization results. Additionally, these standardized values were used to at the same time examine the influence of all scoring features on how test cases were sorted. Moreover, the test case prioritizing process was carried out for the other software versions by making use of the normalized values that provided the highest ranking for all score features for one version. The purpose of this approach was to determine whether or not it would be possible to use a standard scoring technique to prioritize identified score features and achieve good results in the process of test prioritization. Within this framework, the results of the test case prioritization process for four iterations of the embedded software, which serves as an outline for the thesis, were also investigated. The normalized scores that were produced from the calculations of each score feature taken into account in the final version of the software are the ones that were utilized to prioritize the different versions. Based on the data, it seems that the most beneficial results in terms of prioritizing were accomplished using the most recent version. The metrics APFD (average defect detection rate) and APFDc (percentage of defects found relative to average costs) were used to evaluate the prioritizing outcomes. The duration time of each test case was utilized to compute the necessary cost value for the APFDc metric. The cost values for each defect detected in the test cases were calculated by the software tester, taking into account the impact of the fault on the user. Upon analyzing all the data, it becomes evident that identifying the most impactful scoring features in the experimental process can lead to improvements in fault detection during all testing processes. This can be done by prioritizing test cases based on their scoring features.

Benzer Tezler

  1. Cultural heritage circular governance for the integrated conservation of historic cities: The case of the Medina of Munis

    Tarihi şehirlerin bütünleşik korunmasına yönelik kültürel miras'ın döngüsel yönetişimi: Tunus Medine örneği

    YASMINE TIRA

    Doktora

    İngilizce

    İngilizce

    2024

    İstanbul Teknik Üniversitesi

    Mimarlık Ana Bilim Dalı

    Yükleniyor...

  2. Test Case Prioritization for Regression Testing Using Change Impact Analysis

    Değişim Etki Analizi Kullanılarak Regresyon Testi için Test Sınıflarının Önceliklendirilmesi

    EKİNCAN UFUKTEPE

    Doktora

    İngilizce

    İngilizce

    2019

    İzmir Yüksek Teknoloji Enstitüsü

    Bilgisayar Bilimleri ve Mühendisliği Ana Bilim Dalı

    Yükleniyor...

  3. Effectiveness of using clustering for test case prioritization

    Test durum önceliklendirmesinde kümeleme kullanımının etkililiği

    CAN GÜNEL

    Yüksek Lisans

    İngilizce

    İngilizce

    2019

    İzmir Yüksek Teknoloji Enstitüsü

    Bilgisayar Mühendisliği Ana Bilim Dalı

    Yükleniyor...

  4. Diverse SNP selection for epistasis test prioritization

    Epistatik test önceliklendirme için çeşitli SNP seçilimi

    GİZEM ÇAYLAK

    Yüksek Lisans

    İngilizce

    İngilizce

    2019

    İhsan Doğramacı Bilkent Üniversitesi

    Bilgisayar Mühendisliği Ana Bilim Dalı

    Yükleniyor...

  5. Software test case prioritization using data analysis and machine learning algorithms

    Veri analizi ve makine öğrenmesi algoritmalari kullanilarak yazilim test durumlarinin önceliklendirilmesi

    AYDA FIROUZIBOSTANABAD

    Yüksek Lisans

    İngilizce

    İngilizce

    2025

    İstinye Üniversitesi

    Veri Bilimi Ana Bilim Dalı

    Yükleniyor...