Challenge

Project 2 - V&V SW Analysis II

  1. Perform Static Code Review Analysis for “C:\**\LDRA_workarea\Examples\C_Testbed_examples\Testrain\Testrain.c” Generate Code review reports and upload them.

Answer

  1. Source - single file - load testrain.c
  2. Create a new sequence.
  3. Keep it in white box mode.
  4. Source - run static analysis
  5. Results - test manager report
  6. Repeat the same procedure for black box testing.

Perform Integration testing by including all the .C files available in the folder location C:\**\LDRA_workarea\Examples\Toolsuite\Cashregister_6.0\ **

STEPS:

  1. Write the name of the file here and click on Create
  2. Click on " system "
  3. Add -> Userinteface.c file and click OK
  4. From the menu bar:
  5. Configure -> LDRA Testbed Configuration Options -> Static options
  6. In "include files" select the .dat file as shown below
  7. Similarly, select the .dat file in "macros"
  8. From the menu bar:
  9. Sequence -> New
  10. Sequence name
  11. From the menu bar:
  12. Source -> Run static analysis
  13. Generate reports for both " White box " and " Black box "

Integration Testing

Testing of two or more “.c” files combined is called Integration Testing.

A)Create the test cases manually as well as automatically using TBExtreme and upload the reports.

STEPS:

  1. After creating a sequence in the above steps, further in black box texting to generate " automatically test cases "
  2. From the menu bar: Extreme test -> Run Tabular Extreme Test
  3. cases are generated
  4. From the menu bar:
  5. Results -> Regression report and Test manager report are generated which are shown below.
  6. For manual test cases:
  7. Right-click on any function, below is shown of example "Userinterface parse" function
  8. Create a new test case -> Enable the mode Repetitions -> Continue -> and again Continue.
  9. Manually giving input value for the function and then from Run driver respective function is run.
  10. In a similar manner manually entering values for other functions also.
  11. Generating Regression and Test manager report which is shown below.

  1. B) store the test cases as .tcf file. Upload the location image where the .tcf file is stored.

STEPS:

  • From the menu bar:
  • Source -> Save File or Set to TCF

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.