Challenge

Project 2 - V&V SW Analysis II

Question 1)

step 1: open LDRA TBrun
open LDRA TBrun unit testing application -> click source tab -> click single file -> select Testrain.c (C:\users\LDRA_workarea\Examples\C_Testbed_examples\Testrain.c) -> popup window (Run LDRA Testbed analysis) -> yes -> now the system process static analysis.

step 2: create new sequence
click sequence tab-> select new sequence -> popup -> type sequence name as project2 ->
Code coverage (uncheck is BlacK box mode) -> Continue

step 3: create new test case
select functions (testrain.c) -> Right click -> create new test case -> popup -> Continue

step 4: Assign I/O value
Assigning input and output value

step 5: Run driver
click Run driver tab -> Generate driver -> Build driver -> Execute driver -> process driver output

step 6 : Regression report
click results tab -> click Regression report -> popup -> LDRA Page Shows entire report.

step 7: Convert Black box into white box
select Testrain.c -> Right click -> select set as white box (or) Double click in the box symbol

step 8: Run driver (white box mode)
click Run driver (F2) in shortcut

step 9: Dynamic Coverage analysis report
click results tab -> click Dynamic coverage analysis report -> Popup -> LDRA page shows entire report.

step 10: Test manager report
click results tab -> select test manager report

Question 2)

step 1: Create multiple files Manually
click LDRA launcher -> click TBrun -> click source tab -> select multifiles -> popup -> Type name as project2 -> create -> popup -> select system -> popup -> click add -> popup -> select cashregister.c, main.c, product data base.c, special offer.c, userinterface.c -> click add -> ok -> popup -> click no

step 2: configure LDRA Testbed
click Configure tab -> select LDRA Testbed configuration options -> click static options -> popup ->
click Find/Create popup -> selet workarea location -> popup -> Yes -> In static analysis option ->
macros tab -> click find/create -> Popup -> select LDRA_workarea folder -> Type file name as sysppvar -> select -> popup -> yes -> ok

step 3 : create new sequence
click sequence tab -> select new sequence -> Popup -> Type sequence name as integration_test -> code coverage (white box mode) -> continue

step 4: Run test build
click Run test build in shortcut

step 5: view Call diagram
click view call diagram shortcut

step 6: make Labels on diagram
Right click in call diagram -> select make labels Persistent

step 7: check complexity function
click maintainability -> zoom Code quality view -> click cyclomatic Complexity -> now see "userinterface_parse" is 16:(Fail). so userinterface_Parse is high complexity.

a)

step 1: create test cases Automatically
click Extreme test tab -> select run tabular extreme test

step2: Regression report
click results tab -> select Regression report

step 3: create test case manually (TC 1)
select userinterface_parse -> Right click -> create new test case -> continue

step 4: Assign I/O value
I 's'

step 5: Copy test case (TC 2)
Right click in test case 1 -> copy -> Paste test case after

Step 6: Assign I/O value
I 'q'

step 7: copy test case (TC 3)
Right click in test case 2 -> copy -> paste test case after

step 8: Assign I/O value
I 'w'

step 9: Copy test case (TC 4)
Right click in test case 3 -> copy -> Paste test case after

step 10: Assign I/O value
I 'o'

Step 11: copy test case (TC 5)
Right click in test case 4 -> copy -> paste test case after

step 12: Assign I/O value
I 'e'

Step 13: Copy test case (TC 6)
Right click in test case 5 -> copy -> paste test case after

step 14: Assign I/O value
I 'r'

step 15: Run build
click Run test build in shortcut

step 16: Flow diagram
click userinterface_parse -> Right click -> Flow diagram

step 17: control coupling graph
select userinterface_parse -> right click -> procedure extended control coupling graph -> select dynamic call graph shortcut

step 18: Regression report
click results tab -> select regression report

Step 19: Dynamic coverage analysis report
click results tab -> select Dynamic Coverage analysis report

step 20: Test manager report
click results tab -> select test manager report

b)

step 1: save .tcf file
click source tab -> select save file (or) set to TCF -> popup -> Type name as project2.tcf -> save

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.