Araştırma Makalesi
BibTex RIS Kaynak Göster

Model Proposal for Testing Websites in Multiple Browsers: Case of Selenium Test Tool

Yıl 2022, Cilt: 1 Sayı: 2, 105 - 119, 13.09.2022

Öz

Automated software testing has critical advantages when compared with manual software testing. Selenium test tool is one of test tools that specialists use to test web applications or websites automatically. This test tool consists of 4 software components, i.e., Selenium IDE, Selenium RC, Selenium WebDriver and Selenium Grid. The main purpose of this article is to implement a proposed model for cross-browser website testing by using Selenium WebDriver. Selenium WebDriver is required to manage actions of a web browser. Drivers are needed to make a bridge between Selenium WebDriver and the relevant web browsers (chrome, edge, firefox). Other components of the model were Python, Unittest as a test framework and PyCharm. PyCharm was used as an editor to write test scripts. One positive scenario and one negative scenario were applied to the relevant website. The results of automated test scenarios in 3 browsers were reported on the PyCharm screen. As a result, the model was validated because automated test results have been supported by manual test results.

Kaynakça

  • Datadog (n.d.). Cross browser testing overview. Retrieved 15.06.2022 from https:// https://www.datadoghq.com/knowledge-center/cross-browser-testing/
  • Garcia, B., Gallego, M., Gortázar, F. & Munoz-Organero, M. (2020). A Survey of the Selenium Ecosystem. Electronics, 9, 1067; doi:10.3390/electronics9071067. Retrieved from: https://www.researchgate.net/publication/342581217_A_Survey_of_the_Selenium_ Ecosystem
  • Garcia. B., Kloos, C.D., Alario-Hoyos, C. & Munoz-Organero, M. (2022). Selenium-Jupiter: A JUnit 5 extension for Selenium WebDriver. The Journal of Systems & Software 189 (2022) 111298
  • Gogna, N. (2014). Study of Browser Based Automated Test Tools WATIR and Selenium. International Journal of Information and Education Technology, 4(4), 336-339. Retrieved from: https://www.researchgate.net/publication/284440228_Study_of_Browser _Based_Automated_Test_Tools_WATIR_and_Selenium
  • Gojare, S., Joshi, R., & Gaigaware, G. (2015). Analysis and Design of Selenium WebDriver Automation
  • Testing Framework. Procedia Computer Science 50 (2015) 341-346. DOI: https://doi.org/10.1016/j.procs.2015.04.038
  • Hanna, M., Aboutabl, A.E., & Mostafa, M.S.M. (2018). Automated Software Testing Framework for Web Applications. International Journal of Applied Engineering Research, 13(11), 9758-9767. Retrieved from: https://www.ripublication.com/ijaer18/ijaerv13n11_141.pdf
  • Holmes, A. & Kellogg, M. (2006). Automating Functional Tests Using Selenium. IEEE, Proceedings of AGILE 2006 Conference (AGILE'06). Retrieved from: https://www.cs.swarthmore.edu/~bylvisa1/cs97/f13/Papers/25620270.pdf
  • Jagannatha, S., Niranjanamurthy, M., Manushree, SP. & Chaitra, GS. (2014). Comparative Study on Automation Testing using Selenium Testing Framework and QTP. Journal of Computer Science and Information Technology, 3(10), 258-267. Retrieved from: https://www.ijcsmc.com/docs/papers/October2014/V3I10201485.pdf
  • Kakaraparthy, D. (2017). Overview and Analysis of Automated Testing Tools: Ranorex, Test Complete, Selenium. International Research Journal of Engineering and Technology, 4(10), 1575-1579. Retrieved from: https://www.irjet.net/archives/V4/i10/IRJET-V4I10290.pdf
  • Koruyan, K. & Uzun, B. (2019). Yazılım test sürecinde durum raporlamasına genel bakış ve yaklaşımlar. Yönetim Bilişim Sistemleri Dergisi, 5(1), 52-63. Retrieved from: https://dergipark.org.tr/tr/download/article-file/876421
  • Meriç, Ö. & Özbayoğlu, A. (2021). Yapay Öğrenme ile Yazılım Test Eforu Tahmini. Veri Bilimi Dergisi, 4(1), 38-44. Retrieved from: https://dergipark.org.tr/tr/download/article-file/1205719
  • Nguyen, V. & Le, B. (2021). RLTCP: A reinforcement learning approach to prioritizing automated user interface tests. Information and Software Technology 136 (2021) 106574. DOI: https://doi.org/10.1016/j.infsof.2021.106574
  • Python. (n.d.). Unit testing framework. Retrieved 06.09.2021 from https://docs.python.org/3/library/unittest.html#module-unittest
  • Rana, T. & Latif, B. (2020). A preliminary survey on software testing practices in Khyber PakhtunKhwa region of Pakistan. Turkish Journal of Electrical Engineering & Computer Sciences, 28, 575-589. Retrieved from: https://journals.tubitak.gov.tr/elektrik/issues/elk-20-28-1/elk-28-1-42-1903-6.pdf
  • Sabaren, L., Mascheroni, M., Greiner, C. & Irrazábal, E. (2018). A Systematic Literature Review in Cross-browser Testing, Journal of Computer Science & Technology, 18(1), 18-27.
  • Selenium. (n.d.). WebDriver. Retrieved 07.09.2021 from https://www.selenium.dev/documentation/webdriver
  • Selenium.dev. (n.d.). Getting started. Retrieved 01.09.2021 from https://www.selenium.dev/documentation/webdriver/getting_started/
  • Selenium-python (n.d.). Installation. Retrieved 01.09.2021 from https://selenium-python.readthedocs.io/installation.html
  • Sharma, M. & Angmo, R. (2014). Web based Automation Testing and Tools. International Journal of Computer Science and Information Technologies, 5 (1), 908-912. Retrieved from: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.642.4838&rep=rep1&type=pdf
  • Sharma, R., Devi, J. & Bhatia, K. (2017). A Study on Functioning of Selenium Automation Testing Structure. International Journal of Advanced Research in Computer Science and Software Engineering, 7(5), 855-862. Retrieved from: https://www.researchgate.net/publication/318930970_A_Study_on_Functioning_of_Selenium_Automation_Testing_Structure
  • Simplified. (22.04.2019). Automated Unit Testing of a Web Application in Python. Retrieved 10.09.2021 from https://medium.com/@mashood.snhu/automated-unit-testing-of-a-web-application-in-python-de426afda5a3
  • Umesh, N., Saraswat, A. & Himanshi (2015). Automation Testing: An Introduction to Selenium. International Journal of Computer Applications, 119(3), 49-51. Retrieved from: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.695.3234&rep=rep1&type=pdf
  • Takgil, B. & Kara, R. (2016). Android Mobil Uygulamalar için Yazılım Testi. El-Cezerî Fen ve Mühendislik Dergisi, 3(2), 324-328. Retrieved from: https://dergipark.org.tr/tr/download/article-file/230831
  • Yusifoğlu, V.G., Amannejad, Y. & Can, A.B. (2015). Software test-code engineering: A systematic mapping. Information and Software Technology 58 (2015) 123 -147. DOI: http://dx.doi.org/10.1016/j.infsof.2014.06.009

Model Proposal for Testing Websites in Multiple Browsers: Case of Selenium Test Tool

Yıl 2022, Cilt: 1 Sayı: 2, 105 - 119, 13.09.2022

Öz

Otomatik yazılım testi, manuel yazılım testi ile karşılaştırıldığında kritik avantajlara sahiptir. Selenium test aracı, uzmanların web uygulamalarını ya da web sitelerini otomatik olarak test etmek için kullandığı test araçlarından biridir. Bu test aracı, Selenium IDE, Selenium RC, Selenium WebDriver ve Selenium Grid olmak üzere 4 yazılım bileşeninden oluşur. Bu makalenin temel amacı, Selenium WebDriver’ı kullanarak birden fazla tarayıcıda web sitesi testi için önerilen bir modeli uygulamaktır. Selenium WebDriver, bir web tarayıcısının eylemlerini yönetmek için gereklidir. Selenium WebDriver ile ilgili web tarayıcıları (chrome, edge, firefox) arasında köprü kurmak için sürücülere ihtiyaç vardır. Modelin diğer bileşenleri Python, Unittest ve PyCharm bileşenleridir. PyCharm, test senaryosu komutlarını yazma editörü olarak kullanılmıştır. İlgili web sitesine bir olumlu ve bir olumsuz senaryo uygulanmıştır. 3 tarayıcıdaki otomatik test senaryolarının sonuçları PyCharm ekranında raporlanmıştır. Sonuç olarak, otomatik test sonuçları manuel test sonuçları tarafından desteklendiğinden önerilen modelin doğrulaması gerçekleşmiştir.

Kaynakça

  • Datadog (n.d.). Cross browser testing overview. Retrieved 15.06.2022 from https:// https://www.datadoghq.com/knowledge-center/cross-browser-testing/
  • Garcia, B., Gallego, M., Gortázar, F. & Munoz-Organero, M. (2020). A Survey of the Selenium Ecosystem. Electronics, 9, 1067; doi:10.3390/electronics9071067. Retrieved from: https://www.researchgate.net/publication/342581217_A_Survey_of_the_Selenium_ Ecosystem
  • Garcia. B., Kloos, C.D., Alario-Hoyos, C. & Munoz-Organero, M. (2022). Selenium-Jupiter: A JUnit 5 extension for Selenium WebDriver. The Journal of Systems & Software 189 (2022) 111298
  • Gogna, N. (2014). Study of Browser Based Automated Test Tools WATIR and Selenium. International Journal of Information and Education Technology, 4(4), 336-339. Retrieved from: https://www.researchgate.net/publication/284440228_Study_of_Browser _Based_Automated_Test_Tools_WATIR_and_Selenium
  • Gojare, S., Joshi, R., & Gaigaware, G. (2015). Analysis and Design of Selenium WebDriver Automation
  • Testing Framework. Procedia Computer Science 50 (2015) 341-346. DOI: https://doi.org/10.1016/j.procs.2015.04.038
  • Hanna, M., Aboutabl, A.E., & Mostafa, M.S.M. (2018). Automated Software Testing Framework for Web Applications. International Journal of Applied Engineering Research, 13(11), 9758-9767. Retrieved from: https://www.ripublication.com/ijaer18/ijaerv13n11_141.pdf
  • Holmes, A. & Kellogg, M. (2006). Automating Functional Tests Using Selenium. IEEE, Proceedings of AGILE 2006 Conference (AGILE'06). Retrieved from: https://www.cs.swarthmore.edu/~bylvisa1/cs97/f13/Papers/25620270.pdf
  • Jagannatha, S., Niranjanamurthy, M., Manushree, SP. & Chaitra, GS. (2014). Comparative Study on Automation Testing using Selenium Testing Framework and QTP. Journal of Computer Science and Information Technology, 3(10), 258-267. Retrieved from: https://www.ijcsmc.com/docs/papers/October2014/V3I10201485.pdf
  • Kakaraparthy, D. (2017). Overview and Analysis of Automated Testing Tools: Ranorex, Test Complete, Selenium. International Research Journal of Engineering and Technology, 4(10), 1575-1579. Retrieved from: https://www.irjet.net/archives/V4/i10/IRJET-V4I10290.pdf
  • Koruyan, K. & Uzun, B. (2019). Yazılım test sürecinde durum raporlamasına genel bakış ve yaklaşımlar. Yönetim Bilişim Sistemleri Dergisi, 5(1), 52-63. Retrieved from: https://dergipark.org.tr/tr/download/article-file/876421
  • Meriç, Ö. & Özbayoğlu, A. (2021). Yapay Öğrenme ile Yazılım Test Eforu Tahmini. Veri Bilimi Dergisi, 4(1), 38-44. Retrieved from: https://dergipark.org.tr/tr/download/article-file/1205719
  • Nguyen, V. & Le, B. (2021). RLTCP: A reinforcement learning approach to prioritizing automated user interface tests. Information and Software Technology 136 (2021) 106574. DOI: https://doi.org/10.1016/j.infsof.2021.106574
  • Python. (n.d.). Unit testing framework. Retrieved 06.09.2021 from https://docs.python.org/3/library/unittest.html#module-unittest
  • Rana, T. & Latif, B. (2020). A preliminary survey on software testing practices in Khyber PakhtunKhwa region of Pakistan. Turkish Journal of Electrical Engineering & Computer Sciences, 28, 575-589. Retrieved from: https://journals.tubitak.gov.tr/elektrik/issues/elk-20-28-1/elk-28-1-42-1903-6.pdf
  • Sabaren, L., Mascheroni, M., Greiner, C. & Irrazábal, E. (2018). A Systematic Literature Review in Cross-browser Testing, Journal of Computer Science & Technology, 18(1), 18-27.
  • Selenium. (n.d.). WebDriver. Retrieved 07.09.2021 from https://www.selenium.dev/documentation/webdriver
  • Selenium.dev. (n.d.). Getting started. Retrieved 01.09.2021 from https://www.selenium.dev/documentation/webdriver/getting_started/
  • Selenium-python (n.d.). Installation. Retrieved 01.09.2021 from https://selenium-python.readthedocs.io/installation.html
  • Sharma, M. & Angmo, R. (2014). Web based Automation Testing and Tools. International Journal of Computer Science and Information Technologies, 5 (1), 908-912. Retrieved from: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.642.4838&rep=rep1&type=pdf
  • Sharma, R., Devi, J. & Bhatia, K. (2017). A Study on Functioning of Selenium Automation Testing Structure. International Journal of Advanced Research in Computer Science and Software Engineering, 7(5), 855-862. Retrieved from: https://www.researchgate.net/publication/318930970_A_Study_on_Functioning_of_Selenium_Automation_Testing_Structure
  • Simplified. (22.04.2019). Automated Unit Testing of a Web Application in Python. Retrieved 10.09.2021 from https://medium.com/@mashood.snhu/automated-unit-testing-of-a-web-application-in-python-de426afda5a3
  • Umesh, N., Saraswat, A. & Himanshi (2015). Automation Testing: An Introduction to Selenium. International Journal of Computer Applications, 119(3), 49-51. Retrieved from: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.695.3234&rep=rep1&type=pdf
  • Takgil, B. & Kara, R. (2016). Android Mobil Uygulamalar için Yazılım Testi. El-Cezerî Fen ve Mühendislik Dergisi, 3(2), 324-328. Retrieved from: https://dergipark.org.tr/tr/download/article-file/230831
  • Yusifoğlu, V.G., Amannejad, Y. & Can, A.B. (2015). Software test-code engineering: A systematic mapping. Information and Software Technology 58 (2015) 123 -147. DOI: http://dx.doi.org/10.1016/j.infsof.2014.06.009
Toplam 25 adet kaynakça vardır.

Ayrıntılar

Birincil Dil İngilizce
Konular Bölgesel Çalışmalar
Bölüm Araştırma Makaleleri
Yazarlar

Cem Ufuk Baytar 0000-0003-0844-8160

Yayımlanma Tarihi 13 Eylül 2022
Gönderilme Tarihi 1 Temmuz 2022
Yayımlandığı Sayı Yıl 2022 Cilt: 1 Sayı: 2

Kaynak Göster

APA Baytar, C. U. (2022). Model Proposal for Testing Websites in Multiple Browsers: Case of Selenium Test Tool. Topkapı Sosyal Bilimler Dergisi, 1(2), 105-119.