What is the time complexity (big O notation) of white-box and black-box testing?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

"Rajesh Kumar N: Guiding Young Minds from 1 to 12 with Expertise and Care"

The time complexity of white-box and black-box testing can vary significantly based on the specifics of the software being tested and the thoroughness of the testing process. White-box testing involves examining the internal structure and workings of the software. The time complexity can be influenced...
read more
The time complexity of white-box and black-box testing can vary significantly based on the specifics of the software being tested and the thoroughness of the testing process. White-box testing involves examining the internal structure and workings of the software. The time complexity can be influenced by factors such as the size of the codebase, the complexity of the algorithms, and the number of paths through the code that need to be tested. Generally, the time complexity can be approximated as: Best Case: \(O(n)\) - If the code is straightforward with minimal branching. Worst Case: \(O(2^n)\) - If the code has many conditional branches and loops, leading to an exponential number of paths to test. Black-box testing focuses on testing the software's functionality without considering its internal structure. The time complexity here depends on the number of input combinations and the complexity of the software's functionality. Typically, the time complexity can be approximated as: Best Case: \(O(1)\) - If the software has a simple interface with minimal input combinations. Worst Case: \(O(n^2)\) - If the software has a large number of input combinations and complex interactions. These are general approximations, and the actual time complexity can vary based on the specific context and implementation of the testing process. read less
Comments

Wroking in IT industry from last 15 years and and trained more than 5000+ Students. Conact ME

White-box testing: Complexity varies with code structure. Black-box testing: Complexity depends on input/output space, often O(n).
Comments

Wroking in IT industry from last 15 years and and trained more than 5000+ Students. Conact ME

White-box testing: Depends on code paths, often O(n) or O(m), where n is code paths, m is nodes. Black-box testing: Depends on input space size, often O(n), where n is the number of test cases.
Comments

View 1 more Answers

Related Questions

I want to post my availability to work as a freelancer for doing Software development or testing related work, or even technical content writing. How can I place myself on UrbanPro?
Hello, Good morning! I recommend following couple of options for you in order to showcase your skills and share your experience among others. 1. Build your strong profile over elance or freelance portal....
Profile Photo
Nilambari
1 0
View Comments7
Is manual testing dying?
Manual testing is necessary and compulsory to learn selenium. Manual testing has the basic concepts, methodologies, Logic, Planning, Test case writing are the main thing you need to lean fully to do automation...
Profile Photo
Sonakshi
0 0
View Comments5
How do I switch from manual tester to automation?
Learn automation tools, scripting languages; practice on projects; seek mentorship or training.
Profile Photo
Furqankhan
0 0
View Comments5
What is STLC in manual testing?
Software Testing Life Cycle: Planning, Test Design, Test Execution, Defect Reporting, Test Closure.
Profile Photo
Niyajuddin
0 0
View Comments6
Hi Guys, I don't have any knowledge of software development and coding...Can I eligible to learn Testing?
Yes, For Manual Testing no coding experience is required. It is all based on clearing your concepts and logics. Also, you can prepare for ISTQB certification to have a good carrer in Testing.
Profile Photo
Krishna

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Practices & Strategies For Test Automation
Q)What are the Best Practices and Strategies for Test Automation? A)Below are some best practices & strategies for Test Automation: 1.Hire a Dedicated Automation Engineer or Team:This is a basic...
I

Icreative Solution

1 0
View Comments0

API Testing with SOAPUI training in pune
Training: API Testing With Soapui Expert Training Contents: Introduction to Webservices Learning Groovy Learning SOAP UI - free version READY API (SOAPUI PRO)- REST WEB SERVICES PARAMETERIZING TESTS
Profile Photo

Free selenium video tutorial
Hi All, Hope you are doing good. We uploaded few videos on Selenium components like IDE, RC and Webdriver on youtube channel you can watch them for free of cost. Kindly search with below link: ...
Profile Photo

Manual Testing / Black Box Testing / Functional Testing.
Software Testing Scope is very high. Testing is forever. Career growth. Testing Finding the problems and reporting to developers. (Applications) Finally developers will fix the issues.
D

Automated testing with the help of Behavior driven testing (BDT)
Behavior-driven development (BDD) is a popular and acknowledged Software testing methodology. Behavior driven testing (BDT) is not that popular, but is a companion of BDD. BDT can be used without BDD. BDD...
Profile Photo

Recommended Articles

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for Manual Testing Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you