50_stress_test.js 1011 B

123456789101112131415161718192021222324252627282930313233343536
  1. let test_utils = require('./test_utils');
  2. let user = "./users/testuser/";
  3. // performs the long-running and exhaustive tests
  4. module.exports = {
  5. beforeEach : function (client) {
  6. client.url('http://localhost:8124/atompm').pause(1000);
  7. },
  8. 'Login' : function (client) {
  9. test_utils.login(client);
  10. },
  11. 'Load all toolbars': function (client) {
  12. console.log("Testing toolbars...");
  13. test_utils.getFiles(client, user, '/**/*.buttons.model', test_utils.load_toolbar);
  14. console.log("Testing metamodels...");
  15. test_utils.getFiles(client, user, '/**/*Icons.metamodel', test_utils.load_toolbar);
  16. console.log("Testing pattern metamodels...");
  17. test_utils.getFiles(client, user, '/**/*Icons.pattern.metamodel', test_utils.load_toolbar);
  18. },
  19. 'Load all models' : function (client) {
  20. test_utils.getFiles(client, user, '/**/*.model', test_utils.load_model);
  21. },
  22. after : function (client) {
  23. client.end();
  24. },
  25. };