ویرگول
ورودثبت نام
امید آرام - توسعه دهنده نرم افزار
امید آرام - توسعه دهنده نرم افزار
خواندن ۵ دقیقه·۲ ماه پیش

انواع تست نرم افزار - قسمت ۲ (Manual vs. Automated vs. Continuous)

قسمت قبلی:

Manual vs. Automated vs. Continuous Testing

Let’s start our journey from the roots of your tree by comparing the three main primary approaches to software testing that dominate the landscape: manual testing, automated testing, and continuous testing.

You may also notice that this level of our diagram is somewhat intertwined with the categories on the level below it. What does this mean?

It’s hard to categorize which software tests can be automated and which can’t. In some circumstances, it is both, while in others the manual approach is the only possible choice. So, for simplicity’s sake, we’ve put this categorization at the bottom, so that our graph doesn’t look like a complex Penrose diagram. Just keep in mind that.

So, with that clarification out of the way, let’s move on to the first categorization based on how the testing process is performed.

تست دستی، تست خودکار و تست مداوم

بیایید از مقایسه سه رویکرد اصلی تست نرم‌افزار شروع کنیم:
تست دستی (Manual)، تست خودکار (Automated) و تست مداوم (Continuous).

در ابتدا توجه داشته باشید که بسیار سخت است که بگوییم کدام تست میتواند خودکار انجام شود و کدام یک نمیشود. در برخی شرایط، یک تست میتواند هم دستی انجام شود هم خودکار؛ و در برخی موارد، رویکرد دستی تنها انتخاب ممکن است. بنابراین، برای سادگی، ما اینگونه دسته بندی کرده ایم تا نمودار ما شبیه یک نمودار Penrose پیچیده نباشد. حال بیایید به اولین دسته‌بندی بر اساس نحوه انجام فرآیند تست بپردازیم.


Manual testing

Manual testing involves human testers meticulously executing test cases, simulating user interactions, and observing software behavior. It requires human intuition, expertise, and attention to detail. Manual testing excels in situations where subjective evaluation, exploratory testing, and ad hoc testing are required. It is especially useful when:

* Testing user interfaces, usability, and user experience,
* Assessing software behavior in unpredictable scenarios,
* Evaluating the aesthetics and overall feel of the application.

تست دستی

تست دستی اینگونه است که افرادی (تِسترها) با دقت، موارد تست را اجرا می‌کنند، تعاملات کاربر را شبیه‌سازی می‌کنند و رفتار نرم‌افزار را مشاهده می‌کنند. اینکار بصیرت انسانی را میطلبد و همچنین نیاز به تخصص و توجه به جزئیات دارد. تست دستی در شرایطی که ارزیابی ذهنی، تست اکتشافی (exploratory testing) و تست موقت (ad hoc testing) مورد نیاز است، برتری دارد. به ویژه زمانی مفید است که:

  • در حال تست رابط کاربری (UI)، قابلیت استفاده (Usability) و تجربه کاربری (UX) هستید،
  • در حال ارزیابی رفتار نرم افزار در سناریوهای غیر قابل پیش بینی هستید،
  • در حال ارزیابی زیبایی شناسی و احساس کلی برنامه هستید.
Automated testing

Automation testing uses specialized software tools to execute predefined test cases and compare actual results with expected results. It accelerates the testing process, increases efficiency, and enables test iteration. Automated testing is ideal for scenarios such as:

* Regression testing to ensure that modifications don’t introduce new defects.
* Performance testing to evaluate system response times and resource utilization.
* Load testing to measure software stability under high user volumes.

Automation testing requires an initial investment to set up the test environment, create test scripts, and select appropriate tools. It requires technical expertise to develop and maintain automated test suites. While automated testing reduces the effort required for repetitive tasks, it may lack the human element to detect certain nuances that manual testing excels at.

تست خودکار

تست خودکار از ابزارهایی استفاده میکند تا موارد تست از پیش تعریف شده را اجرا کند و نتایج آن را با نتایج مورد انتظار مقایسه کند. این فرآیند تست را تسریع می کند، کارایی را افزایش می دهد و تکرار تست را امکان پذیر می سازد. تست خودکار برای سناریوهایی مانند موارد زیر ایده آل است:

  • تست رگرسیون، برای اطمینان از عدم ایجاد خطای جدید در اصلاحات کد.
  • تست عملکرد، برای ارزیابی زمان پاسخ سیستم و استفاده از منابع.
  • تست بار، برای اندازه گیری پایداری نرم افزار در حجم بالای کاربر.

تست اتوماسیون نیاز به سرمایه گذاری اولیه برای راه اندازی محیط تست، ایجاد اسکریپت های تست و انتخاب ابزار مناسب دارد. توسعه و نگهداری این تست های خودکار، نیازمند داشتن تخصص فنی است. با وجود اینکه تست خودکار کارهای تکراری را کاهش می دهد، اما ممکن است فاقد عنصر انسانی برای تشخیص ظرایف خاصی باشد که تست دستی در آنها برتری دارد.

Continuous testing

Continuous testing integrates testing activities throughout the entire software development process, ensuring quick feedback and rapid defect resolution. It combines manual and automated testing approaches and leverages test automation frameworks and tools. Continuous testing is particularly valuable in scenarios like:

* Agile and DevOps environments where continuous integration and deployment are key.
* Projects that require frequent software updates and iterative development.
* Complex systems that demand constant quality assurance.

Continuous testing requires a robust test automation infrastructure, comprehensive test suites, and a well-defined feedback loop. It requires collaboration between development and testing teams to enable a streamlined process for identifying and fixing defects early in the development cycle.

تست مداوم

تست مداوم، فعالیت‌های تست را در کل فرآیند توسعه نرم‌افزار، یکپارچه می‌کند و اطمینان میدهد که فیدبک ها را سریع دریافت و رفع نمایید. این روش‌های تست دستی و خودکار را ترکیب می‌کند و از فریم ورک ها و ابزارهای اتوماسیون تست استفاده می‌کند. تست مداوم به ویژه در سناریوهایی مانند موارد زیر ارزشمند است:

  • محیط‌های Agile و DevOps که در آن یکپارچه‌سازی مداوم (CI) و استقرار مداوم (CD) کلیدی است.
  • پروژه هایی که نیاز به آپدیت مکرر نرم افزار و توسعه تکراری دارند.
  • سیستم های پیچیده ای که نیاز به تضمین کیفیت ثابت دارند.

آزمایش مداوم نیاز به زیرساخت اتوماسیون تست قوی، مجموعه های جامع تست و یک حلقه دریافت فیدبک دارد. این امر نیازمند همکاری بین تیم‌های تست و توسعه هست تا فرآیندی سریع و ساده برای شناسایی و رفع نقص‌ها ایجاد کنند.


قسمت های بعدی:

لینک مطلب اصلی:
https://stratoflow.com/types-of-software-testing

software testingdeveloperclean codeautomated testingmanual testing
شاید از این پست‌ها خوشتان بیاید