Project 2 - V&V SW Analysis II
QUESTION:1
Steps for creating code review report:
1.Open TBrun application from desktop using start tbrun icon.
2.loading a file: Go to source tab and select single file option then select the file testrain.c by going to desired LDRA_workarea\Examples\C_Testbed_examples\Testrain\Testrain.c Folder.
3.After adding the file it will prompt for run analysis click on okay
4.Creating a sequence: To create a sequence go to sequence tab or right click on sequence in file view and select create sequence witha name .here i used SAR and then check mark the code coverage option for white box testing then click ok.
5.Static analysis: Go to source tab and click on run static analysis to perform static analysis.
6.after completion of static analysis it generates 2 reports test manager report which has code review and quality review analysis
7.Save the reports into PDF using print option.
NOTE : REPORT IS ATTACHED IN THE FILES WITH NAME PROJECT2Q1 CODEREVIEW REPORT IN TEST MANAGER REPORT.PDF
QUESTION :2
Creating tcf file after performing manual and automatic testing:
steps:
1.Open TBrun application from desktop using start tbrun icon.
2.loading a file: Go to source tab and select Multiple file option then give name of group in select/create option here i gave as sarat and then click on create.
3.It will prompt a popup asking select a new set propert click on System then for grouping results for integration testing.
4. Then it will prompt files in set then click on add and select files from LDRA_workarea\Examples\Toolsuite\Cashregister_6.0\ Folder.
5.Then click on ok to add all files.
6.After adding the file it will prompt for run analysis click on NO.
7.Then you need configure variables manually by Going to Confugure-> Analyse Configuration options -> static options
8. there i have choosen the path in ldra workspace both for include files and macros. when it prompts create new click yes then.
9.Create a new sequence with name sarath by righ clicking on new sequence in file view and check marking code coverage option for white box testing.
10. Then perform static analysis from the source tab by clicking on Run static analysis and wait for its completion which takes some time. after its done all avriables and function calls are loaded in calls view and File view.
11. Then perform test build from top bar for checking any errors.
12.then create a test case by right clicking on function here first i used "userinterface parcing" and created test case then go to run driver and click on run driver or F2.For building test cases i used range input , storing local variables ,null pointer.
13.After bulding all or required cases Go to Results tab and select regression , test management report and dynamic coverage report and print them to save as pdf .
NOTE: ALL THE FILES ARE ATTACHED AS PDF WITH NAME PROJECT2Q2
14. To create Automation of tests i created another sequence as defined in step.9 .
15. after creatic sequence performed Run static analysis from source tab and after completion built the program.
16.After successful build for extreme testing went to Extreme test tab in top bar and then clicked on run tabular extreme test then it will create all tests and covers all possible cases .
17.wait till completion and then get the resports from results section as defined in step.13
18.test case store:
For storing test cases in tcf file go to sourse tab and click on save file or store to tcf ,then a prompt will appear and click okay then it asks for folder to creation of file choose it click ok ,you can view that in that folder you stored
NOTE: ALL MANUAL TESTING REPORTS AND TCF FILE LOCATION IMAGE AND TCF FILE ARE ATTACHE BELOW WITH RESPECTIVE NAMES