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:
- Clone and set up the repository: https://gitlab.com/nsnam/ns-3-AppStore/
- You can follow the instructions in the Wiki and ReadMe to set up the repository
- Make sure the current test-suite is running as expected by running the command:
- python manage.py test
- Add a new function to the AppTestCase class defined in “src/apps/tests.py”, named "test_appPage_view".
- The function should test all the URLs that are handled by appPage view. E.g.: "/", "/invalid"
- The function should test GET and POST requests handled by the view.
- 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
Students who completed this task
howie, hax0kartik