Challenge

Project 2 - V&V SW Analysis II

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

Solution:-

  • Steps for White box testing:-
  • Source -> Single file -> Testrain.c
  • Once this option is selected we can see multiples files in "File view" window. Blue coloured icons appearing inside the File view are functions.
  • For black box and white box testing,first we have to create a sequence from sequence option.
  • Sequence -> Create new sequence -> Enable code coverage -> Continue
  • As shown in above image,we can see that our sequence is created with the white box means it is white box testing.
  • Source -> Run static analysis
  • Once it is initiated all the .c files from File view will run, this activity will be appearing in Log view and once it is finished it will able to generate report.
  • Results -> Test manager report
  • So,we can see the test manager report of white box testing with sequence name Project_2.
  • Steps for Black box testing:-
  • File view -> Right click on file and select Black box testing or double click on white box.it will set as black box.
  • Source -> Run static analysis
  • Once it is initiated all the .c files from File view will run, this activity will be appearing in Log view and once it is finished it will able to generate report.
  • Results -> Test manager report
  • So,we can see the test manager report of Black box testing with sequence name Project_2.

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

  • Solution:-

  • As shown in above image, .c file is added to the set.

  • For integration testing,we have to create set first.
  • Steps:- select source->multiple file->select/create set (create a name)->create->system->add the .c file->click ok it ask run LDRA tested analysis (No)

  • For static analysis,we have to give a path of the data file into include files as well as macros.

  • Step 2:-configure->analysis configuration options->static options->finc/create->example->c_tbrun-examples->again examples->.c files->select
  • Step 3:-macros->find/create->Examples->c_tbrun_examples-examples-> select.(finally give apply and OK)
  • Steps for White box testing:-

  • For black box and white box testing,first we have to create a sequence from sequence option.
  • Sequence -> Create new sequence -> Enable code coverage -> Continue

  • As shown in above image,we can see that our sequence is created with the white box means it is white box testing.

  • Source -> Run static analysis
  • Once it is initiated all the .c files from File view will run, this activity will be appearing in Log view and once it is finished it will able to generate report.

  • Results -> Test manager report

  • So,we can see the test manager report of White box testing with sequence name Project_2.
  • Steps for Black box testing:-

  • File view -> Right click on file and select Black box testing or double click on white box.it will set as black box.

  • Source -> Run static analysis
  • Once it is initiated all the .c files from File view will run, this activity will be appearing in Log view and once it is finished it will able to generate report.

  • Results -> Test manager report

  • So,we can see the test manager report of Black box testing with sequence name Project_2.

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

  • Steps for automatic testing:-

  • Extreme test -> Run tabular extreme test

  • When we click on Run Tabluar extreme test,there are around 60 test cases are formed automatically in test case view and also start excuating automatically.
  • It will also generate regression and manager report.
  • Regression report:-

  • Test manager report:-

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

  • For saving the test cases into .tcf go to Source->Save file or set to TCF.

  • Create a folder of any name and save .tcf file in that folder.

  • We can also see that file in that folder which name in Project_2.
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.