For adding required resources and configuring the protractor UI tests, you need to add the package.json (project-root/) and a protractorConfig.js (project-root/src/test/ui-tests/).
You can just copy the files from the random page sources and change your project attributes (name, description, etc) in the package.json
If you already have package.json, extend it with the 'devDependencies' and 'scripts'.
3. Plugin installation spec
For you very first spec you may start by uploading your plugin via UI test. Therefore copy the uploadPlugin.spec.js (project-root/src/test/ui-tests/specs/common/) into your project and change the plugin information, meaning 'artifact id' and 'plugin name' (can be found in the pom.xml).
If you do not bundle an *.obr file, changes it to *.jar
var mavenVersion = universalPluginManager.parseMavenVersionFromPom();
// "randompage" -> plugin <artifactId> from pom.xml
var pluginPath = "./target/randompage-" + mavenVersion + ".obr";
// "Random Page" -> plugin <name> from pom.xml
universalPluginManager.uploadPlugin("Random Page", pluginPath, PLUGIN_UPLOAD_TIMEOUT);
As you only provide one spec file, remove the other specs in the protractorConfig.js
4. Run UI test
Your directory structure should now look like this
This content hasn't been updated in a while. That doesn't have to be a problem.
Some of our pages live for years without becoming obsolete.
Please click this link if you want us to update this page.
Old content can be incorrect, misleading or outdated. Please get in contact with us
via a form on this page, our live chat or via email with
firstname.lastname@example.org if you are
in doubt, have a question, suggestion, or want changes from us.