Project 2 - V&V SW Analysis II
ans 1. Static code analysis is a process of finding the fatal run time errors without executing the code ,it is very essential in embedded software. In static code analysis we do manual review the code to find the bug.
It is usually done on software which is properly compiled nad is independent of the computer used for compilation.
Steps to follow for static code analysis are :
1. Open LDRA tbrun tool.
2.Go to source and load the source file from LDRA_workarea\Examples\C_Testbed_examples\Testrain\Testrain.c”
3.Once Testrain.c file loaded go to source menu and run the static code analysis .
4.Once static code analysis complete Go to results and view the test manager report.
ans2.
In integration testing is kind of testing in which we test two or more .c files,also if there is function called in one function and it is defined in another function then there is no need to create stub.
Approaches in integration testing :
1.TOP-down tetsing
2.Bottom up testing.
steps to load multiple files .
1.go to source->select multiple files ->create the name ->select the system
Now add the files for integration testing ,once file has been added do the static analysis
Steps to follow for integration testing:
1.Create the new sequence and select the code coverage box for white box testing
2.Do the test build to check the error in file.
3.Also ,check the call diagram for particular file to see how function are linked with each other.
4.In the view call diagram By clicking the maintability we can see the most complexity function.
5.Do the integration testing on that particular function.
6.Create the test cases and give input value manually in I/O variable.
7.once value has been given run the driver to run the test case.
8.Once the test case has passed.
9.To see the test reports ,go to results ->view the test manager report->Test verification report .
10.Once you have seen the report now create the TCF file to store the particular test cases, and saved it in folder with name .
Now tbextreme testing in this method same we will do load the files in the LDRA tool but this time instead of creating a standard test cse we will select (run tabular TBExtreme test case) and this feature will build the test cases with all the posible conditions at one go .
IN TBextreme test cases run ,we don't have to put values manually it will automatically take the values. and also we don't have to run the driver. once it done we will save the test cases in tcf file.
NOTE* below are PFA screenshot of process and location.