Тёмный

Condition Coverage - Georgia Tech - Software Development Process 

Udacity
Подписаться 614 тыс.
Просмотров 86 тыс.
50% 1

Watch on Udacity: www.udacity.co...
Check out the full Advanced Operating Systems course for free at: www.udacity.co...
Georgia Tech online Master's program: www.udacity.co...

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@shayshay8295
@shayshay8295 3 года назад
That was not clear.
@杨泽鹏-s8o
@杨泽鹏-s8o 5 лет назад
Hi, I have a question here, X = 5 in both of the test cases, so why the condition coverage is 100%? Because one of the conditions is that X==0. but X isn't 0 in both test cases .
@jeanatalle5071
@jeanatalle5071 5 лет назад
Hello. Branch coverage is testing which branch in the code is being executed with respect to the test variables that you input it. The conditional statement if ( (x==0) || (y > 0) ), when true, actually forms (and counts as) one branch, and when false, forms another branch. The first test case (x=5 AND y=5) makes the whole condition false. While 2nd test case (x=5 AND y=-5) makes the whole condition evaluate to false. Thus all branches were executed and covered. Hope that helps!
@jeanatalle5071
@jeanatalle5071 5 лет назад
He is discussing first the branch coverage. You probably mean the condition coverage is not satisfied 100% since x was never equal to 0
@danh3066
@danh3066 6 лет назад
This was an excellent tutorial, but I am a little lost on the True/False statement as it is illustrated on your CFG. It goes 3 > 4 > Then Jumps into an If/Else statement. Why is the If/Else statement not being carried out on 5 as your test suggests? I have just stumbled across this stuff and trying to work out the differences between Statement/Branch.
@zyks4628
@zyks4628 6 лет назад
I think there is an error on the diagram. The decision circle, if ((x==0) || (y>0)), should be labelled 5 and there should be an additional circle 4, signifying 'read (y)', between circles 3 and 5. Great explanatory tutorial nonetheless.
@mohammedshaikh8343
@mohammedshaikh8343 2 года назад
thanks
@maddinagarjuna28
@maddinagarjuna28 6 лет назад
Branch coverage and condition coverage are both the same
@jord019
@jord019 6 лет назад
how did you reach that conclusion?
@ced2453
@ced2453 5 лет назад
Obviously not.
Далее
УГОСТИЛ БЕЛКУ МОРОЖЕНЫМ#cat #cats
00:14
Logic: Coverage Criteria
44:25
Просмотров 23 тыс.
White box testing for Project work
6:45
Просмотров 18 тыс.
ISTQB Fundation answers to exam questions 17 to 19
5:50
Solving one of PostgreSQL's biggest weaknesses.
17:12
Просмотров 194 тыс.