Project 2 - V&V SW Analysis II
1.Aim
Perform Static Code Review Analysis for:
"C:\**\LDRA_workarea\Examples\C_Testbed_examples\Testrain\Testrain.c"
Generate Code review report and upload them.
Static Code Review Analysis
LDRA TBurn is a tool used for test case management,test execution ,and the collection and analaysis of coverage data in software development. Static code review analysis using the LDRA TBurn tool involves examining the source code of a software application without executing it to identify potential issues,errors and adherence to coding standards.It primarily focuses on code quality,security and vulnerabilties and standard compliance.
Steps for Implementation
- Open the LDRA TBrun tool in Unit Testing Mode
- Create a new project , expand Source & select Single file.
- Choose the Testrain.c file from the given destination. (C:\**\LDRA_workarea\Examples\C_Testbed_examples\Testrain\Testrain.c)
- Create a New Sequence (I named it as Project21_nes).
- Now go to Source select option named Run Static Analysis.
- Examine the analysis results and identify any issues, violations, or code quality concerns. Address them as needed by making code modifications.
- After that go to Result and open Task Manager Report.Save the generated code review reports in a suitable format (e.g., PDF, HTML). Then, upload the reports to the designated location.
Conclusion
Static Code Review Analysis is performed using LDRA TBrun tool to elevate the Testrain.c file.This process involves checking for potential code issues,adherence to coding standards, and code quality without executing the code.The steps include configuring analysis settings,running the analysis,reviewing findings,generating comprehensive reports,and saving/uploading the reports to ensure code quality and compliance with coding standards.
2.Aim
Perform Integration testing by including all the .C files available in the folder location:
"C:\**\LDRA_workarea\Examples\Toolsuite\Cashregister_6.0\ ** "
- Create the test cases manually as well as automatically using TBExtreme and upload the reports.
- Store the test cases as .tcf file. Upload the location image where the .tcf file is stored.
Integration Testing
Integration testing with LDRA TBurn helps ensure that the integrated software functions correctly and maintains its intended behaviour when multiple components interact. It is an essential step in the software development life cycle,especially in safety-critical industries, to guarantee the overall quality and reliablity of the software.
Steps for Implementation
- Open the LDRA TBrun tool.
- Create a new project , expand Source & select Multiple Files.
- Name your set(here i named as project22_nes),then click on create,we will get a LDRA tool suite Question? select System.
- Now will get a window as System project22_nes:List/Add/Remove Files in Set ,there choose Add option and select which all files you need for this current project and click on Add.Then click OK.
- Again a Question window will come ,click on No.
- Now expand Configure again expand LDRA Testbed Configuration Options and click option named Static Options.
- In Include Files section click on Find/Create option search for sysearch.dat file.(if not available then create a .dat file)
- Now go to Macros click on Find/Create option search for sysppvar.dat file and click on OK.
- Run LDRA Static Analysis from Source option.
- Now from Source select Save File or Set to TCF,a window named TBrun will appear close it.
- Now name your .tcf file(here i named as project22_nes.tcf) ,then Save.
- Then you can easily loacte your file by right clicking on Cashregister.c and click Explore Source File Directory.
- Go to Source click on File?Set from TCF.Go to Cashregister_6.0 folder you can find Cashregister.tcf file,open it.
- Then a window named Select Files for Set will appear,click Ok.
- Now a question window will appear click No.
- Again go to Configure again expand LDRA Testbed Configuration Options and click option named Static Options.
- In the Macros section click on Edit you can find a notepad with content as "TUTORIAL 1".Close everything.
- Again Run Static Analysis.
- Now create a New Sequence name it for integration testing.(integration_p22_nes)
- Now click on Run Test Build option from the menu bar.
- Create test case in standard format for function named Userinterface_parse.
- Edit input as your wish and Run Driver.Hence we get our test case result as Pass.
- Now go to Result and choose Dynamic Coverage Analysis Report.We will get report in browser window.Hence we have done manual testing
- For Automatic test case analysis we can use TBExtreme features.
- Go to Extreme Test options select Run Standard Extreme Test. It will automatically create one-one test cases each for every functions available in the sequence.
- After that go to Results select Task Manager Report.Hence we get the report of whole project.Save the file as HTML/PDF format for future reference.
Conclusion
We have performed integration testing on the given .c files,both manually as well as automatically generate test cases,,store them as .tcf files and viewed & verified necessary reports and results.