The ns-3 Network Simulator Project

Test tagSearch view in ns-3 AppStore

ns-3 AppStore is used to host ns-3 modules that are independently developed and maintained. This task aims to enhance the test-suite that is being currently used in the ns-3 AppStore. The task is to write a basic unit test to verify the sanity of ‘tagSearch’ view defined in “src/apps/views.py”.

The student is expected to do the following:

  1. Clone and setup the repository: https://gitlab.com/nsnam/ns-3-AppStore/
  2. You can follow the instructions in the Wiki and ReadMe to setup the repository
  3. Make sure the current test-suite is running as expected by running the command:
  4. python manage.py test
  5. Add a new function to the AppTestCase class defined in “src/apps/tests.py”, named "test_tagSearch_view"
  6. The function should test all the URLs that are handled by appPage view. Eg: "/tag/all", "/tag/ "
  7. The function should test GET requests handled by the view.
  8. For the final submission, upload the diff generated by "git diff" command on the GCI dashboard. Along with this, upload a screenshot of the output after running "python manage.py test" command.

Task tags

  • python
  • testing

Students who completed this task

Kr0n0s, hax0kartik, howie

Task type

  • assessment Outreach / Research
  • done_all Quality Assurance
close

2019