qa Archives - SoftUni Global https://softuni.org/tag/qa/ Learn Programming and Start a Developer Job Wed, 30 Mar 2022 11:56:17 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.3 https://softuni.org/wp-content/uploads/2022/04/cropped-SoftUni-Global-Logo-Square-notext-32x32.png qa Archives - SoftUni Global https://softuni.org/tag/qa/ 32 32 What You Need to Know About Unit Testing [Dev Concepts #27] https://softuni.org/dev-concepts/what-you-need-to-know-about-unit-testing/ https://softuni.org/dev-concepts/what-you-need-to-know-about-unit-testing/#respond Thu, 27 Jan 2022 07:10:00 +0000 https://softuni.org/?p=11046 In this article of the series Dev Concepts, we take a look at Unit Testing and Testing Frameworks.

The post What You Need to Know About Unit Testing [Dev Concepts #27] appeared first on SoftUni Global.

]]>

Unit testing is an important concept and practice in software development. As a term, unit tests are pieces of code that test specific functionality in a certain software component. Usually, they are not written by QA engineers but from the developers that wrote the code. Unit tests are part of the product source code and aim to improve the code quality, reliability, and maintainability.

unit_testing_guidelines

Unit testing frameworks simplify, structure, and organize the unit testing process. It executes the test and generates reports. The developers organize tests in a hierarchy using classes and functions. After that is done, they assert the execution result and exit all conditions for correctness. Examples of unit testing frameworks are: JUnit for Java and Mocha for JavaScript.

boxes-unit-testingThe Unit testing techniques are mainly categorized into three parts which are Black box testing that involves testing of user interface along with input and output, White box testing that involves testing the functional behaviour of the software application and Gray box testing that is used to execute test suites, test methods, test cases and performing risk analysis.

Unit test developers usually follow the “AAA pattern“. It stands for:

  • arrange the input data and entrance conditions
  • act – execute the function for testing
  • assert whether the results and the exit conditions are as expected

In the arrange section, you have the code required for setting up the specific test. Here is where we create objects and potentially set expectations. Then there is the act, which should be the invocation of the method being tested. In the assert, you would check whether the expectations are met.

unit-test-ticket

By implementing unit testing, it’s easier to catch and fix issues early before they cost extra time and money. It can become an important part of the overall software development process, helping to foster development more efficiently and productively. We should aim to write unit tests that focus solely on a single unit of code. With having more test reports, it will be easy to find the error in our code.

Lesson Topics

In this tutorial we cover the following topics:
  • Unit Testing
  • Unit Testing Framework

Lesson Slides

The post What You Need to Know About Unit Testing [Dev Concepts #27] appeared first on SoftUni Global.

]]>
https://softuni.org/dev-concepts/what-you-need-to-know-about-unit-testing/feed/ 0
Is Software Quality Assurance Important for Developers? [Dev Concepts #26] https://softuni.org/dev-concepts/is-software-qa-important-for-developers/ https://softuni.org/dev-concepts/is-software-qa-important-for-developers/#respond Tue, 25 Jan 2022 06:10:00 +0000 https://softuni.org/?p=10880 In this article, we will get familiar with the Software Quality Assurance (QA) and concepts like manual testing, bug tracking and automated testing.

The post Is Software Quality Assurance Important for Developers? [Dev Concepts #26] appeared first on SoftUni Global.

]]>

Software Quality Assurance is a term that covers all aspects of guaranteeing a high-quality software product. It includes creating processes for each stage of development to reduce bugs and flaws during the build. Companies need it to measure the quality of the software.

sqa-diagram

At the heart of the QA process is software testing.

Software testing is the process of checking whether the software conforms to the requirements and works as expected.

Software testing aims to find the bugs (or defects) in the software and to report them for fixing.

Software testing can be manual or automated.

Manual testing is done by hand.

The QA engineer clicks on the software UI, fill and submits forms, interacts with the software UI, invokes back-end operations by hand or by specialized tools, executes certain functionality, validates that it works correctly, and tries to find defects.

Manual testing also involves testing the user experience (UX), the user interface, and the visual look and feel of the software.

Automated testing is done by scripts and programs, which perform robotic checks of the software.

Instead of clicking at the UI controls, filling and submitting forms by hand,

QA automation engineers record scripts and write programs to do automate this and to check whether the software behaves correctly without human innervation.

In addition to testing, there are a few other approaches to software quality assurance.

Code reviews and quality inspections are proactive approaches to software quality.

They aim to catch defects and bad practices early before they appear in the functionality.

Such practices are typically done by senior developers or senior QA engineers.

Code reviews aim to enforce good practices for internal code quality, such as writing understandable and maintainable code, avoiding repeating code, using clear abstractions, formatting the code correctly, naming identifiers correctly, structuring the code in a clear way, and many others.

Quality inspections try to find problems in the code, by understanding its program logic and internal design.

The goal of the testing process is to find and report the defects and issues with the software.

Reported bugs are described, submitted, and tracked in issue tracking software (or simply, bug tracker).

In the issue tracker, developers and QA engineers discuss the issues, prioritize them, assign them to team members, track the work on the issues and the changes of their status, confirm when an issue is fixed, and finally close it.

Issue trackers track not only the defects but also new feature requests and other issues with the software.

Software quality assurance is a broad topic in software engineering and is a separate profession in many software companies.

QA engineers should have basic software development and technical skills

and strong attention to the details and quality, to be diligent and patient, and to work persistently on the software quality, testing, and test automation.

Here are some reasons for using Software Quality Assurance:

  • Ensures products keep improving

The Software Quality Assurance process is all about consistently maintaining high standards. Many of those standards depend on what customers want. As customers engage with a product, they will have suggestions on how to improve them.

 

  • Leads to more long-term profit

people-communicateSoftware Quality Assurance can boost profit in a few ways. The first is through saving more money by not wasting time and resources. The second is that the quality makes companies more competitive in the marketplace. Customers are willing to pay more for better quality

  • Saves companies time and money

cartWhile it takes time at the beginning of the process to create systems that catch errors, it takes more time to fix the errors if they’re allowed to happen or get out of control. Paying to prevent problems is cheaper than paying to fix them.

  • Boosts customers’ confidence

certificatePeople will want to spend money on products, but only if they believe they’re getting something that’s worth the price. When businesses use Software QA processes, they’re letting customers know that they care about them and their priorities.

  • Gives consistent results

checklistWith software products, consistency is the most important factor for Software Quality Assurance. The QA ensures every product bearing the company’s name is the same. No customer is going to get something worse or better than another customer.

Software Quality Assurance is a must in Software Development as it ensures your software is built efficiently and is finished with minimal flaws and bugs. Without it, Software Development could be quite unreliable, with products potentially requiring complete do-overs.

Lesson Topics

In this tutorial we cover the following topics:
  • Software Quality Assurance
  • Live Demo of Issue Tracker

Lesson Slides

The post Is Software Quality Assurance Important for Developers? [Dev Concepts #26] appeared first on SoftUni Global.

]]>
https://softuni.org/dev-concepts/is-software-qa-important-for-developers/feed/ 0