1234567891011121314151617181920212223242526272829303132333435363738 |
- let test_utils = require('./test_utils');
- let user = "./users/testuser/";
- module.exports = {
- beforeEach : function (client) {
- client.url('http://localhost:8124/atompm').pause(300);
- },
- 'Login' : function (client) {
- test_utils.login(client);
- },
- 'Load model' : function (client) {
- let filename = 'Formalisms/ClassicDEVS/ClassicDEVS.model';
- test_utils.load_model(client, [filename]);
- },
- 'Load two models' : function (client) {
- let filenames = [
- 'Formalisms/ClassicDEVS/ClassicDEVS.model',
- 'Formalisms/Annotation/AnnotationMM.model'
- ];
- test_utils.load_model(client, filenames);
- },
- 'Load all models' : function (client) {
- test_utils.getFiles(client, user, '/**/*.model', test_utils.load_model);
- },
- after : function (client) {
- client.end();
- },
- };
|