Project 2 - V&V SW Analysis II
- Perform Static Code Review Analysis for “C:\**\LDRA_workarea\Examples\C_Testbed_examples\Testrain\Testrain.c” Generate Code review report and upload them.
To perform this experiment LDRA Tool is required AS LDRA tool Is not available i cant do this challenge in LDRA so i write the steps in workspace.
open Documents-> LDRAEE -> LDRA_Workarea-> Examples-> C_tbrun_examples-> Testrain.c.
open Tbrun unit testing -> dynamic analysis.
it perform static analysis and getting the information of source file,function list and structure of code.
selection the function one by one for testing.
In function you can see parameter global variable and return type.
To create test case open sequence, it will store the test cases. and right click to open procedure code.
It shows standard option here we have to assign the input and output values to the function.
for running the test cases go to run driver->generate driver->build driver-.>execute driver.
once we executed we get output file.
store the testcase in tcf.file
it shows value for storage execpt value and actual value name and type.and shows the result pass or value.
To open report of testcases open -> regression report.
- Perform Integration testing by including all the .C files available in the folder location C:\**\LDRA_workarea\Examples\Toolsuite\Cashregister_6.0\ ** A)Create the test cases manually as well as automatically using TBExtreme and upload the reports. B)store the test cases as .tcf file. Upload the location image where the .tcf file is stored.
creating a testcase automatically
- open LDRA tool->double click build import->select single file
- open start in directory and browse the source file path ex cash register.c
- select builid batch file
- it generates cash register application
- open build command and give build batch and run the file
- once build is done it generate target file
- open Tbrun with single file
creating a testcase manually
- open LDRA tool ->open TBrun
- click source ->single file
- Give set name
- select system->system call->cashregister.c
- open add->browse->add file->click ok
open Tbrun unit testing -> dynamic analysis.
open ->source->singlefile->cashregister.c in example folder.
it perform static analysis.
select the function in cashregister.c for testing.
In function you can see parameter global variable and return type.
using TBextreme we can crteate test cases with all possible combination
after loading the files ex cash register.c
open new sequence ->sequence name->continue
select the any one function ->run standard extreme->single testing (or) run tabular extreme it creates all posisible combination
after creating the test cases
select extreme test ->run configure test
specify setting for resolving function and variable before running TBextreme
apply extreme test to stub return values
for stub function you can manually give to return values function according to return type
for running the test cases go to run driver->generate driver->build driver-.>execute driver.
once we executed we get output file.
store the testcases to tcf.file
it shows value for storage execpt value and actual value name and type.and shows the result pass or value.
repeat the steps for all the function and analize the report and
To open report of testcases open -> dynamic coverage analysis report.
analize the report using flow diagram and extended control coupling graph static coupling graph and dynamic coupling graph.
open->view->notation->flowdiagram.
open ->result ->test manager report analize the function and the execute the remaining function calls and statement.