You have designed a graphic user interface (GUI), which now needs to be white-bo
ID: 3687602 • Letter: Y
Question
You have designed a graphic user interface (GUI), which now needs to be white-box tested. You need to create a document that specifies at least two test cases and one dynamic analysis. Explain your reasoning for your dynamic analysis choice. Once the plan is defined, execute the test plan. Finally, include descriptions of the results of your test plan execution.
Address the following:
Submit a GUI you have created in which the source code is readily available to you.
Develop a test plan (including two test cases) in a Word document involving the following. Execute the test plan. Discuss the results in your Word document.
Perform a static analysis (a code review or walk-through) that includes the following:
Identify proper coding style.
Identify the proper implementation of code design.
Identify potential problems with risky code or deadlock situations.
Identify any other errors.
Design, write-up, and test 2 test cases.Based on each test case, do the following:
Choose inputs
Run them through the code
Determine the appropriate outputs
Perform 1 of the following dynamic analyses (execution of the code):
Statement coverage: Designed to execute every statement at least once
Branch coverage: Designed to test every branch of the program at least once
Path coverage: Designed to test every path of execution at least once
Definition-use-path coverage: All paths between the definition of a variable and the use of that variable are tested
Explanation / Answer
operating systems provide a graphical user interface. Applications typically use the elements of the GUI that come with the operating system and add their own graphical user interface elements and ideas. A GUI sometimes uses one or more metaphors for objects familiar in real life, such as the desktop, the view through a window, or the physical layout in a building. Elements of a GUI include such things as: windows, pull-down menus, buttons, scroll bars, iconic images, wizards, the mouse, and no doubt many things that haven't been invented yet. With the increasing use of multimedia as part of the GUI, sound, voice, motion video, and virtual reality interfaces seem likely to become part of the GUI for many applications. A system's graphical user interface along with its input devices is sometimes referred to as its "look-and-feel."
Statement Coverage:
In this the test case is executed in such a way that every statement of the code is executed at least once.Branch/Decision Coverage:
Test coverage criteria requires enough test cases such that each condition in a decisiontakes on all possible outcomes at least once, and each point of entry to a program or subroutine is invoked at least once.That is,every branch (decision) taken each way,true and false. It helps in validating all the branches in the code making sure that no branch leads to abnormal behavior of the application.
Path Coverage:
In this thetest case is executed in such a way that every path is executed at least once.All possible control paths taken, including all loop paths taken zero, once, and multiple (ideally, maximum) items in path coverage technique, the test cases are prepared based on the logical complexity measure of a procedural design. In this type of testing every statement in the program is guaranteed to be executed at least one time. Flow Graph,Cyclomatic Complexity and Graph Metrics are used to arrive at basis path.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.