The ns-3 Network Simulator Project

Test appPage 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 ‘appPage’ view defined in “src/apps/views.py”.

The student is expected to do the following:

  1. Clone and set up the repository: https://gitlab.com/nsnam/ns-3-AppStore/
  2. You can follow the instructions in the Wiki and ReadMe to set up 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_appPage_view".
  6. The function should test all the URLs that are handled by appPage view. E.g.: "/", "/invalid"
  7. The function should test GET and POST 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

howie, hax0kartik

Task type

  • code Code
  • done_all Quality Assurance
close

2019