Тёмный

ISTQB Foundation Level | 4.3.1 Statement Testing | Statement Coverage | White Box | ISTQB Tutorials 

TM SQUARE
Подписаться 43 тыс.
Просмотров 124 тыс.
50% 1

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

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 166   
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Hello Friends, There are a lot of people asking me about this topic that what type of question is coming from here. Pls, be aware in the new syllabus (2018) These program-based questions are NO LONGER asked. It's now K2 and only a theory based question will be asked. So, you can IGNORE the understanding of flowcharts based solutions. This video is created in detail for Knowledge purposes only. All the best and Happy Learning!!
@RealAlanSmithee
@RealAlanSmithee 4 года назад
Thank you - I do UAT testing for a large US bank and I'm being asked to take the ISTQB exam. My company paid for some online training but I have to admit, your videos are more helpful, especially with the topic of statement coverage.
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Thanks a lot for the credits. It really adds a lot of value to my work.
@parassharma391
@parassharma391 2 года назад
Finally i understood topic because of which i thought i should study any tutorial to understand S.C and D.C or BC. Thanks to you Neeraj!!!
@irynachechyna1015
@irynachechyna1015 Год назад
Thank you very much! I have passed the exam for 34. Your courses really structured all my knowledge! Thank a lot!
@TMSQUARETECH
@TMSQUARETECH Год назад
Congratulations Irina!! Its great pleasure to hear that. It was great assisting you. All the very best in all your future endeavors.
@Echelsy
@Echelsy 5 лет назад
You are wonderful. Thank you for all your effort. I have my exam in 5days and this has been sooo helpful.
@TMSQUARETECH
@TMSQUARETECH 5 лет назад
All the best.
@Echelsy
@Echelsy 5 лет назад
@@TMSQUARETECH please any tips on where i can get resent dumps for practice....also i would like to know if they actually repeat questions
@TMSQUARETECH
@TMSQUARETECH 5 лет назад
not usually they repeat questions. But you can find dumps at istqbcertifications.com also these are uploaded by people around the world as ISTQB never releases an official paper outside. Thou you can find two standard sample paper from istqb here www.slideshare.net/jannatindia/
@MariskadeG
@MariskadeG 4 года назад
I feel the same. I will go for my third try in 8 days. I did not understand the Syllabus enough to pass above 63%. These videos are really needful!
@DesilLifeFlixopolis
@DesilLifeFlixopolis Год назад
Thank you so much for your guidance and showing us such an easy way to understand these test techniques.. I PASSED the ISTQB Foundation Level Exam this morning, and I owe it to your videos. 😍😍😍
@TMSQUARETECH
@TMSQUARETECH Год назад
Congratulations on the success. Thanks for sharing your results and feedback. Wishing you all the very best in all your future endeavors.
@julianagold7904
@julianagold7904 Год назад
This was really amazing! Thank you so much! God bless you! I just passed my exams because of this video. I am grateful The simplified techniques, the explanation! I recommend these videos!!
@TMSQUARETECH
@TMSQUARETECH Год назад
Congratulations Juliana!! Thanks for your feedback. All the best in all your future endeavors.
@badbinder2712
@badbinder2712 Год назад
in example 3 the flowchart isnt equal to the pseudocode. Either an identation for the third if statement is missing or the flowchart needs to be adapted in a way that the 2 branches after B=0 are coming together before the A>21 statement
@luisgaxiola-baqueiro6105
@luisgaxiola-baqueiro6105 Год назад
Yes, I thought exactly the same when I did the flowchart on my own before seeing his.
@MW2proification
@MW2proification Год назад
What number of coverage should it be? 3?
@cuibap2xu
@cuibap2xu Год назад
We just need only 2 cases: a=22, b=0; a=22, b=1
@huongvu137S
@huongvu137S Год назад
Agree! My flowchart is like yours. Thanks for sharing your thoughts
@dipsysingh2902
@dipsysingh2902 4 года назад
Hi Neeraj sir. You made my day by your beautiful explanations and of course, wonderful Tips.......Many Thanks
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Thanks alot Ms. Dipsy
@roxanapopa8262
@roxanapopa8262 Год назад
Very useful (the black-box techniques are explained in courses such as Udemy ones but the white ones not - unless you read the book and not only the Syllabus). Thank you
@TMSQUARETECH
@TMSQUARETECH Год назад
Thank you so much Roxana.
@enzomantic5670
@enzomantic5670 4 года назад
Un-nested condition SC= 2 (when else are there). Regardless of the number of "else" in the program? if i have 10 else, the SC is still = 2?
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Yes.. As we would need just 2 paths to cover all of them..
@diveekool
@diveekool 3 года назад
But the previous question the answer was 3... y was it not 2 then and we used thr formula...?
@user-ib9kx8de6z
@user-ib9kx8de6z Год назад
Hi, Your videos are very helpful. I just want to point out that in Example 3 there might be an error in the flow chart. This flow chart hasn't taken care of If B 0. If B 0 The logic should go to check If A > 21 or not but your flow chart skip this check.
@user-ib9kx8de6z
@user-ib9kx8de6z Год назад
Example 3 of Video4.3.1 Statement Testing Statement Coverage
@TMSQUARETECH
@TMSQUARETECH Год назад
Hi Dan Chi, Good Catch but I think in the beginning of this tutorials I mentioned that these are pseudo codes and they are provided by the board. We don't have to evaluate the deficiency of code but follow the question and get the answer. Note : this is not a programming certification so they can use any hypothetical example/scenario in their questions as well.
@reyshop1178
@reyshop1178 2 года назад
Super helpful sir.Tips on Statement coverage and decision coverage is lit.The overall training is good sir. Thank you for the videos.
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Glad you liked it
@SerhatUzunbayir
@SerhatUzunbayir 4 года назад
On Example 3, if statement on line 8 should be indented a bit more. It does not wrong but until i notice endif below my mind messed up. I thought it is another if however it is a nested if. Thanks for the review.
@ahmedbrentley1092
@ahmedbrentley1092 3 года назад
I know Im kinda off topic but does anyone know a good website to watch newly released series online ?
@curtisnash4476
@curtisnash4476 3 года назад
@Ahmed Brentley i watch on Flixzone. Just google for it =)
@m78gin
@m78gin 3 года назад
HI Neeraj, in eg. 3 why is the path: read--->a>0---->end not being considered for statement coverage?
@luisgaxiola-baqueiro6105
@luisgaxiola-baqueiro6105 Год назад
Because that is a decision only (this is, when the condition of "A>0" is not true), but there are NO STATEMENTS which depend from this decision to be executed. For instance, when B=0 (Yes/No) there is an action (statement) depending ir the B=0 is "yes" or "no" (the statement is to print a given string). But when "A>0" is not true, then there is no action (statement) to be executed, and that's why it is not counted. Remember this is Statement Coverage, not Decision Coverage.
@ShrirajGhorpade-wr7yj
@ShrirajGhorpade-wr7yj Год назад
Hello Sir, thanks for the quality content you are providing. I've a confusion. Please clear my doubt. In Statement Coverage we count the minimum paths that cover all the nodes at least once. 1) For un-nested if else, can we say number of else doesn't matter-> SC will always be 2. 2) For if without else, no matter nested or not -> SC will always be 1. 3) For nested if else, SC will be 1 + (Number of else). Let me know if my understanding is correct. Thanks again for your valuable teachings. Suggestion: there is a correction I think. 7:48, both the print statements of B=0 should point to A>21.
@senorita-aqa
@senorita-aqa 11 месяцев назад
@TMSQUARETECH Hello) I have the same questions) Clear our doubts please)
@cbrindha9828
@cbrindha9828 3 года назад
Very useful tips....clear explanation...Thankyou so much sir!!
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Always welcome
@Mk-un8sq
@Mk-un8sq 8 месяцев назад
for example -4 ,let suppose if a
@Ishita4671
@Ishita4671 3 года назад
Thank you so much for the tips to calculate statement coverage! Awesome! :)
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Glad it was helpful! Happy Learning!!
@sokchheang598
@sokchheang598 4 года назад
White Box Testing and Symbolic Execution 20 Question (from exam) 1d = b + c; 2if (d > 20) 3a = 3 * a + d; 4if (b < a) { 5 a = 1; 6 if (d < 2 * b) 7 b = 2; 8} 1.Draw program’s Flow Graph 2.Find minimal number of test cases for the following coverage types: a)Statement Coverage b)Path Coverage c)Branch Coverage d)Basic Path Coverage
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Hi Sok, Seems like this question is incomplete as it unclear that what the exact question is all about. Moreover, based on the term used it is probably a very outdated question. Please try providing a complete question to assist well.
@vocepode1
@vocepode1 2 года назад
I think I understood Statement Testing! Thank You!!!
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Thats Great Johny!! Happy Learning!!
@jupitersnake4780
@jupitersnake4780 4 года назад
Thank you so much, these vids are such a great help! Just to clarify, with a nested statement the sc is always equal to 1 + the number of else statements and with an unnested statement the sc is always equal to 2 regardless (when else is there)?
@TMSQUARETECH
@TMSQUARETECH 4 года назад
That’s so true. You are good to go ahead. Thanks for the valuable feedback. All the best for your preparation.
@surajpundhir9996
@surajpundhir9996 2 года назад
@@TMSQUARETECHI think un nested -->No else,then SC is 1 also need to be considered
@stephanieprolixity
@stephanieprolixity Год назад
Can you clarify, maybe there is something I missed. I thought when given questions that ask "how many number of test cases would you need for full coverage from this fragment of code?" we can just count the number of "ELSE" and add 1 and that should be our answer. If so, I got 3?
@nhlanhlamthembu8868
@nhlanhlamthembu8868 3 года назад
Thank you so much , with the tips as well.
@TMSQUARETECH
@TMSQUARETECH 3 года назад
It's all my pleasure!!
@ProfessorSauvaje
@ProfessorSauvaje 3 года назад
very good explanations, thank you
@TMSQUARETECH
@TMSQUARETECH 3 года назад
It's all my pleasure. Happy Learning!!
@sabashujaat7805
@sabashujaat7805 2 года назад
Hi Neeraj! Thanks for your detailed videos. This is of great help. Further, can you please help me with this as there's a bit confusion as per my understanding: 1 For the code fragment given below, which answer correctly represents minimum tests required for statement and branch coverage respectively? Discount rate=1; Fare = 1000; If ((person == 'senior citizen') and ('travel month = January')) Bonuspoints = 100+Bonuspoints If (class=='first') discountRate = 5; Fare = fare * discountRate; (A) Statement Coverage = 1, Branch Coverage = 2 (B) Statement Coverage = 2, Branch Coverage = 2 (C) Statement Coverage = 1, Branch Coverage = 3 (D) Statement Coverage = 2, Branch Coverage = 4 As per formula used in your videos doesn't it should be what is mentioned below? SC = 1 (1+count of else) and DC = 3 (count of if +1) How is the Branch Coverage 2 in this case? As I have seen other sites and it says that Branch Coverage is 2 instead of 3. Can you please further explain?
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Please watch the video for last example as the formula is different in this case. In the given fragment of code IF is not nested thus the formula you applied is not applicable here.
@sabashujaat7805
@sabashujaat7805 2 года назад
@@TMSQUARETECH Hi Neeraj, Did you mean that this is un-nested condition for SC and DC i.e For Statement Coverage; SC =1 (as no ELSE are there) For Decision Coverage; DC=2 (irrespective of count of IF) If this is what you meant to say then can you please further check my query below? The question is how is this program code un-nested? As I have seen your video tutorials where it says that when IF starts it closes before the next IF starts and has some healthy statement. Whereas, in the above question first IF does not completely closes and second IF starts. (This is not as per the example you have discussed in Example 4 of this video)
@heroinehoneybee
@heroinehoneybee 8 месяцев назад
Hello, thanks for the video and answers. Could I ask in unnested, if there are 4 elses, is it still statement coverage equal to 2 or, 4? thanks,
@monicataillefer6137
@monicataillefer6137 Год назад
@10:59 of this video the SC=6/8 = 75% coverage. The same chart in your next video regarding decision coverage it is DC=5/8=62%. I don't understand why you add the a+b twice in SC and not in DC. I am hoping you can give me some clarity because I thought DC was indeed MORE than SC. Thanks you sir!
@huongvu137S
@huongvu137S Год назад
Very helpful tutorial! Thank you very much!!! However, my flowchart in example 3 is drawn a bit differently from the video, like some buddies have commented.
@mateapolic9067
@mateapolic9067 8 месяцев назад
Hello, in example 4, I didn't understand: when else are there, SC is always 2. Does that mean no matter how many else we have? Thank you for your answer :)
@TMSQUARETECH
@TMSQUARETECH 8 месяцев назад
Yes. As they will all continue below one another and I will always need two paths to cover them all
@deepika916
@deepika916 4 года назад
Hello Neeraj, could you please explain this code : How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other : - ………… if (Condition 1) then statement 1 else statement 2 fi if (Condition 2) then statement 3 fi What will be the answer: a. Test Cases b. 3 Test Cases c. 4 Test Cases d. Not achievable
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Hi Deepika, This is Path Testing which is not in our syllabus since 2011. Moreover, the statement testing and decision testing is also not looking forward to program based questions from 2018 syllabus. Thus, you can save your time in order to target other areas of syllabus. But, as you have asked the path testing is find different combinations of each conditions and find various executable paths for the give fragment of code. Here the answer will be 4. For more details, I will be covering this technique on Friday's video upload for Technical Test Analyst, you can see that. All the best and Happy Learning!!!
@TheDeeptinamdeo
@TheDeeptinamdeo 4 года назад
@@TMSQUARETECH Thank you so much.
@mykhailoluhovyi8611
@mykhailoluhovyi8611 3 года назад
@@TMSQUARETECH pls, make it clear why 4 test cases, thanks in advance.
@vaibhavkhondekar9171
@vaibhavkhondekar9171 Год назад
Can we use rough page for calculation during remote exam at home.
@roshenikhka
@roshenikhka 3 года назад
Hello Neeraj, question for the example 5, is the diagram will be provided? I'm little bit confused on this part.
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Hi Roshe, These questions are no longer in the examination. All you can expect is a theoretical based question. The tutorial is only for understanding purpose.
@SandeepKumar-ln7bc
@SandeepKumar-ln7bc 4 года назад
As per istqb syllabus,questions will be k2 type from statement and decision coverage.So the questions you explaining in video above belongs to k2 category?(As i feel them of k3 type,so please clear..)
@TMSQUARETECH
@TMSQUARETECH 4 года назад
These videos cover the K3 level for understanding only but the syllabus covers K2 level questions in exam.
@zhairmagne2702
@zhairmagne2702 3 года назад
What is k2 and k3?
@TMSQUARETECH
@TMSQUARETECH 3 года назад
@@zhairmagne2702 These are knowledge levels defined by ISTQB. For more details visit istqb.org or go through the Introduction video of this playlist
@rutuaara7214
@rutuaara7214 4 года назад
Example-4 - there is 2 else + 1 statement coverage so it should be answer 3 ?
@NarmiJey
@NarmiJey 3 года назад
Hi Neeraj. Pls explain this. In example 5 - Min no of test cases needed to cover 100% sc is 3 - Those are ABC, ABDGH, ABDFGI .So Total 3 . 2 have been already achieved, SO (2/3 *100) = 66.66%. Pls clear this.
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Hi There, The example 5 is not done on the basis of path. The question is about Statement coverage where the justification you provided is for question - Min TC to achieve 100% coverage of statements. They are different.
@NarmiJey
@NarmiJey 3 года назад
Thanks for the clarification
@vanangz
@vanangz 3 года назад
Hi, can you please assist to explain why in below item the answer is B and not A. The following statement refers to decision coverage: “When the code contains only a single ‘if’ statement and no loops or CASE statements, and its execution is not nested within the test, any single test case we run will result in 50% decision coverage.” Which of the following statement is correct? a) The statement is true. Any single test case provides 100% statement coverage and therefore 50% decision coverage b) The statement is true. Any single test case would cause the outcome of the “if” statement to be either true or false c) The statement is false. A single test case can only guarantee 25% decision coverage in this case d) The statement is false. The statement is too broad. It may be correct or not, depending on the tested software
@SAIDEEPDICHOLKAR
@SAIDEEPDICHOLKAR 3 года назад
Hi Vanessa, if you read the question, it says that code contains only 1 "if" statement and it will cover only 50% of the code/decision. Based on this understanding, option b) satisfies the condition, as "if" statement will either result in true or false and hence only 50% of the code will be covered.
@rathourdharmender7828
@rathourdharmender7828 4 года назад
Sir little bit confused on this problem.... How many test cases sre necessary to cover all possible sequences of statements(path) for the following program.? Assume two condition are independent to each other if(condition 1) then statement1 else statement 2 fi If (condition 2) Then statement 3 fi A. 2 test cases B. 3 test cases C. 4 test cases Isqbt answer is 4 test cases .
@SAIDEEPDICHOLKAR
@SAIDEEPDICHOLKAR 3 года назад
Neeraj has mentioned in one of the above comments that this is an outdated question, as path testing is not in current syllabus. Hope that helps.
@youarebest2
@youarebest2 3 года назад
In 2021 will we get these problem solving flow chart questions or only theory questions please help with answer
@TMSQUARETECH
@TMSQUARETECH 3 года назад
No Longer asked as per the new syllabus!!
@Gugapoeta
@Gugapoeta 2 года назад
Hi professor. First of all, thank you for this tutorial. I have one question I'd like to clarify.. my understanding on nested/un-nested conditions is limited, so I'd like to confirm: the first flowchart example (if A>B then print "A is Bigger" - Else Print "B is bigger" ) has only un-nested conditions, right?
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Ok Gabriel, her eit goes. We generally talk about nested and un-nested when we have multiple if's 1. example of nested IF. if x>y then if x=0 then print x is null else print x is bigger end if else print y is bigger end if Here second if starts before the end of first if 2. example for un-nested if x>0 print x is positive else print x is negative end if if x=0 print x is null end if Here the second if starts after end of first if
@DailyCookingIRT
@DailyCookingIRT Год назад
can you please give an example for 100% DC guarantees 100 % SC but not vice versa
@angelinediviyathamburaj
@angelinediviyathamburaj 2 года назад
Thank you for the shortcuts.
@TMSQUARETECH
@TMSQUARETECH 2 года назад
You're welcome!
@randomcaptures22
@randomcaptures22 4 года назад
For Example 4:- Statement coverage will be 4 please explain it or clear my doubt,
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Well done Rishabh. The test cases will be 4 but for cyclomatic complexity. In regards to Statement coverage we need minimum tests covering all statements which can be done with 2. Test 1 - passing through the true path of both conditions Test 2 - passing through the else path of both conditions
@randomcaptures22
@randomcaptures22 4 года назад
@@TMSQUARETECH hey, thanks u soo much for clearing my doubts & explaining it. ur videos r really awesome & helpful for testers.
@TMSQUARETECH
@TMSQUARETECH 4 года назад
My Pleasure
@rajthilakbose3667
@rajthilakbose3667 Год назад
Hi Neeraj...In Example 4 if there are 3 UnNested Loops...then will it be 3 Test case or 2 testcase for that type?
@LeadOne4
@LeadOne4 Год назад
Same query even I have ..my answer as per my flowchart is 3..
@khairulhakimiazwadbinzaidi1095
Hi, i want to ask, is there any differences for the maximum and minimum number test cases for the statement coverage?
@TMSQUARETECH
@TMSQUARETECH Год назад
Yes, Maximum can be covering several combinations of true and false path within a code.
@johnmarkcastro6886
@johnmarkcastro6886 3 года назад
Hi neeraj, just a question regarding the un-nested conditions. correct me if I am wrong. If you have If/if/if/Else/Else/Else/EndIf - If/Else/EndIf - If/If/Else/Else/EndIf - is this still equal to 2? OR is it equal to some other thing? I was kinda lost on that explanation. thanks. :)
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Hi John, This is not un-nested... the example you mentioned is Nested.. if under another if. Un- nested will be like if/Else/endif - if/Else/endif
@shansinghai
@shansinghai 2 года назад
@@TMSQUARETECH so, the answer for John’s question will be 7 right, as there are 6 else?
@VeNkIPrathapaneni
@VeNkIPrathapaneni 3 года назад
Hi sir, if there are no 'else' , what would be the formula?
@uvesakhter1781
@uvesakhter1781 Год назад
I can't understand example 4 can you please elaborate more How can I understand Un nested conditions?
@birwasolanki4711
@birwasolanki4711 2 года назад
If i do have end if in my code how statement n decision coverage will be measure? Shortcut key to find count of statement coverage?
@TMSQUARETECH
@TMSQUARETECH 2 года назад
It will be the same. There no difference as End If is just closure for code.
@mamuni2006
@mamuni2006 4 года назад
If I have 2 nested else block and one separate else block. Let me know the statement coverage formula for this.
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Hi Mr. Soumya, if you understand the concepts of the flow chart. Whether, nested or un-nested, if you add an additional block below it, it can be covered with previous tests. As Path is always to reach from start to end. Thus, the answer would remain the same to that of two nested else block. I hope this was clear solution to understand your query.
@mamuni2006
@mamuni2006 4 года назад
@@TMSQUARETECH Thank you so much. Got it.
@braves74ruf
@braves74ruf 2 года назад
Where in example 5 did F, H, I come from? We have Test 1 A B C Test 2 A B D G H
@mariannadanielyan7929
@mariannadanielyan7929 4 года назад
Thank you !!!!!!!!!
@TMSQUARETECH
@TMSQUARETECH 4 года назад
You're welcome!
@uwaisk5540
@uwaisk5540 3 года назад
Hi, can you take a calculator in to the istqb exam? Also what else can you take in to the exam?
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Hi Uwais, Except a pen/pencil and white paper you are not allowed to carry anything along with you. The white paper is for calculation for chapter 4 and may not be mandatory in all the boards. Please check for the instructions received when applying for exam to confirm.
@uwaisk5540
@uwaisk5540 3 года назад
@@TMSQUARETECH thank you
@uwaisk5540
@uwaisk5540 3 года назад
@@TMSQUARETECH hi, just checked the ISTQB website and it says calculators are allowed?
@robertilin7831
@robertilin7831 3 года назад
Is white box testing functional or non functional? Or both?
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Hi Robert, As white box testing is an approach of test an application, it is applicable in both functional as well as non-functional.
@deekshakatiyar8380
@deekshakatiyar8380 2 года назад
Very nice ..keep it up !
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Thanks a lot
@uvesakhter1781
@uvesakhter1781 Год назад
Whay is Un nested conditions?
@TheMrsEgoista
@TheMrsEgoista 2 года назад
Could you please explain whu the correct answer is 3? For the following piece of code, how many test cases are needed to get 100% statement coverage? Read (Color) // Input color from user IF (Color == "Red") THEN Call Roses(Color) ELSEIF (Color == "Blue") THEN Call Violets(Color) ELSE PRINT "User is no Shakespeare" SaveToDatabase(Color) End Procedure X
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Just because there is an ELSEIF in the code it has another statement/node on 3rd branch..
@TheMrsEgoista
@TheMrsEgoista 2 года назад
@@TMSQUARETECH thank you !
@hiraakram6742
@hiraakram6742 2 года назад
Hi Neeraj!!! Can you please answer the following question. I am unable to understand this question. And explain me as well how can we drive test cases How many test cases are necessary to cover all the possible sequences of statements(Paths) for following program fragment? Assume that two conditions are independent of each other. If(Condition 1) then statement 1 else statement 2 fi if (condition 2) then statement 3 fi A) 2 test cases B) 3 Test Cases C) 4 test cases D) None
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Where is the Program?
@hiraakram6742
@hiraakram6742 2 года назад
@@TMSQUARETECH Ops I am so sorry.. Please check my question again... I edited that question... Thanks
@hiraakram6742
@hiraakram6742 2 года назад
@@TMSQUARETECH And also can you please clear me here that in case of un-nested loops if we have 4 If else statements so it means we have statement coverage is 4 and decision coverage is also 4 right???
@TMSQUARETECH
@TMSQUARETECH 2 года назад
No it will always remain 2 for DC as a single path continue till the bottom. Don't forget it it is to all decisions and statements with MINIMUM paths. So, answer to the above question is 2 tests. I have elaborated in details in the tutorials. Please watch the tutorials once again you will be more confident. Feel free to reach me for anything further
@hiraakram6742
@hiraakram6742 2 года назад
@@TMSQUARETECH Thanks for replying..... can you please clear me one thing? Are you talking about Below program? If(Condition 1) then statement 1 else statement 2 fi if (condition 2) then statement 3 for this program we need 2 tests? If yes then can you please explain how ?
@isamorita8647
@isamorita8647 4 года назад
Thank u!
@TMSQUARETECH
@TMSQUARETECH 4 года назад
You're welcome!
@swapnajit92
@swapnajit92 5 лет назад
Thank you
@TMSQUARETECH
@TMSQUARETECH 4 года назад
welcome
@maheshjakka7371
@maheshjakka7371 4 года назад
Hi, please tell me the answer with explanation for below Question.Thanks in advance Given the Following program IF X < Y THEN Statement 1; ELSE IF Y >= Z THEN Statement 2; END McCabe’s Cyclomatic Complexity is : a. 2 b. 3 c. 4 d. 5
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Hi Mahesh, I think you are getting diverted from the syllabus. Cyclomatic Complexity is in not in the syllabus. Pls ignore this.
@maheshjakka7371
@maheshjakka7371 4 года назад
@@TMSQUARETECH ok, thank you
@waleedahmedkhan7868
@waleedahmedkhan7868 3 года назад
thankyou sir
@TMSQUARETECH
@TMSQUARETECH 3 года назад
My Pleasure!!
@livcami325
@livcami325 2 года назад
Sir, is there a reference where we can understand the theory behind 1+count of IFs/Else tips? Thanks in advance.
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Hi Liv, It's a theory created by me so you may not find any information about it elsewhere. Please let me if you need any further support.
@livcami325
@livcami325 2 года назад
@@TMSQUARETECH WOW! Impressive. It works every time :)
@godaram
@godaram 3 года назад
Can you please explain the Example 4 once again? Thanks
@virisalinas2876
@virisalinas2876 2 года назад
I'm also confused with the answer. As per the "shortcut" you shared, you mentioned count the number of "ELSE" + 1...Wouldn't the answer be 3?
@salikhanan
@salikhanan 5 месяцев назад
Minimum Test Required for Statement Coverage :-Disc = 0 Order-qty = 0 Read Order-qty If Order-qty >=20 then Disc = 0.05 If Order-qty >=100 then Disc =0.1 End if End if a) Statement coverage is 4 b) Statement coverage is 1 c) Statement coverage is 3 d) Statement Coverage is 2 whats the right answer
@yogakumar302
@yogakumar302 4 года назад
If have while band do while loop what will happen
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Hi Mr. Yoga The While wend is not in scope of the foundation level syllabus. So, you can relax. They are only limited to simple If else code examples. In case of while wend or do while the logic remains the same applied similar to SC and DC.
@yogakumar302
@yogakumar302 4 года назад
@@TMSQUARETECH ♥️
@maheshjakka7371
@maheshjakka7371 4 года назад
HI Neeraj Kumar, I am requesting you to please reply answer to my question. Thanks in advance How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? ………… if (Condition 1) then statement 1 else statement 2 fi if (Condition 2) then statement 3 fi ………… a. 1 b. 2 c. 3 d. None of the above My answer is 2,pls let me know is it correct or not. In one of the sample paper it is mentioned as 3.
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Hi Mahesh, Your answer is right as both the conditions are in series thus 1 path will be for covering Statement 1 & 3 and 2nd path will be for Statement 2. By the way, these questions are no longer asked in the examinations. prepare the theoretical part of the same.
@maheshjakka7371
@maheshjakka7371 4 года назад
@@TMSQUARETECH Hi Neeraj, Thanks for helping me, please let me know why these type of questions are not asking in the exam, I have taken this question from one of the sample paper.
@Mousamastana
@Mousamastana Год назад
Sir need more fundamental explanation for this topic.. little confusing
@TMSQUARETECH
@TMSQUARETECH Год назад
Hi Mousam you can get the details here - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-P76xGk_pINU.html
@tatianasergeeva8462
@tatianasergeeva8462 2 года назад
if [ there are nested if's ] then [ SC = (else's number + 1) ] else [ if there are else's ] then [ SC = 2 ] else [ SC = 1 ] end if end if
@honesttalk5192
@honesttalk5192 3 года назад
Thanks for excellent video. I have small doubt in ex-5 why we can take 1 flow like ABDGI why u have taken ABDGH Plz clarify my doubt thanks
@TMSQUARETECH
@TMSQUARETECH 3 года назад
Hi There, If you observe and listen again it's not me who has taken it, it's just a sample question. Of coarse, we can have other alternative tests as well. They say given the following test what's the statement coverage. I hope this is in line with your query.
@honesttalk5192
@honesttalk5192 3 года назад
@@TMSQUARETECH thanks for reply got it
@thirajsenevirathne8259
@thirajsenevirathne8259 2 года назад
Thank you very much, and this is one and only the greatest ISTQB tutorial found on RU-vid. Need to clarify a little thing regarding 1st formula. SC = 1+countOfElse, we can apply this only if the code has nested elses right?
@TMSQUARETECH
@TMSQUARETECH 2 года назад
Thanks for your valuable feedback Thiraj!! Yes you are right by saying it used only for nested cases... I have different formula for un-nested..
@thirajsenevirathne8259
@thirajsenevirathne8259 2 года назад
@@TMSQUARETECH Thank you for quick response.
@raeesalam4265
@raeesalam4265 Год назад
hi could you please share ppt as well for revision
@наталямельник-н5п
@наталямельник-н5п 4 года назад
Why on earth in Example 4 do you have 2 SC? then in other examples your formula doesn't work
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Regarding the example for it's an un-nested if statement thus requires a single path to continue through both the true statements and a single path to travel through both the false statement. Thus, I have provided a separate formula for nested and un-nested if statements. I hope that goes in line with your understanding.
@sokchheang598
@sokchheang598 4 года назад
Help me do this please ^^
@TMSQUARETECH
@TMSQUARETECH 4 года назад
Sure
Далее
Батя всех бургеров на 7000 ккал!
00:55
New Race ? 🪽| Doge Gaming
00:12
Просмотров 1,3 млн
МАМА И КОММУНАЛКА
00:59
Просмотров 98 тыс.
Батя всех бургеров на 7000 ккал!
00:55