How to write the web unit test case for presentation and video interactions for drupal?
Mon, 07/24/2017 - 11:03
I have never heard the term "web unit test case" before - could you please elaborate?
Mon, 07/24/2017 - 12:04
I have used Drupal for my project , integrated h5p in my site. For drupal we need to write test case written by developer (White box testing). Using Simple test plugin.
I dont know how to write the test case for creating interaction.
Tue, 07/25/2017 - 10:11
What you are trying to create is integration tests (not unit tests). I have limited knowledge of Drupal's simpletest, but there's a section in that documentation named Create specific test: Creating a node, which should be a good starting point.
For H5P, you would need to post at least the form fields with the following names:
A tip is to use the browser's developer console to see what values are sent in the POST.
Connect with H5P
H5P is a registered trademark of H5P Group