Reducing Error in Software by Making Software Testable

  • سال انتشار: 1391
  • محل انتشار: همایش ملی علوم و مهندسی کامپیوتر
  • کد COI اختصاصی: NCCSE01_165
  • زبان مقاله: انگلیسی
  • تعداد مشاهده: 1064
دانلود فایل این مقاله

نویسندگان

Amir Darbandi

Islamic Azad University, Sari Branch, Technical Faculty, Computer Engineering

Homayoun Motameni

Islamic Azad University, Sari Branch, Technical Faculty, Computer Engineering

Majid Aboutalebi

Islamic Azad University, Sari Branch, Technical Faculty, Computer Engineering

چکیده

This paper is an attempt to introduce automated testing as a way for reducing software error, and then mention the structure and design which software should possess in order to makes it testable.Considering the fact that the softwares are usually designed so that they do not have the necessary properties for software testability, we mention three important principles that by exerting them on software design structure and coding, software is made testable. This is indicated with a simple and applied example.Finally, we deal with an important aspect of automated testing, that is, Automated testing of classes dependent on other classes. Automated testing of dependent tests without having necessary classes is among important aspects in Automated testing which have value and advantage of parallel implementation process in software development. Important principle of dependency injection is well-used. Automated testing of a class dependent on other classes without using the necessary required real class and by using mock objects will be described through a simple and expressive example.

کلیدواژه ها

Automated Testing,Unit Test, Loos Coupling, Dependency Inversion, Dependency Injection, Mock Objects

مقالات مرتبط جدید

اطلاعات بیشتر در مورد COI

COI مخفف عبارت CIVILICA Object Identifier به معنی شناسه سیویلیکا برای اسناد است. COI کدی است که مطابق محل انتشار، به مقالات کنفرانسها و ژورنالهای داخل کشور به هنگام نمایه سازی بر روی پایگاه استنادی سیویلیکا اختصاص می یابد.

کد COI به مفهوم کد ملی اسناد نمایه شده در سیویلیکا است و کدی یکتا و ثابت است و به همین دلیل همواره قابلیت استناد و پیگیری دارد.