UNPKG

robotframework-foldergenerator

Version:

NPM package to create folders for Robot Framework for a quick start to test automation.

41 lines (36 loc) 1.13 kB
const fs = require("fs") fs.mkdir("./files/a/PageObjects", { recursive: true }, function(err) { if (err) { console.log(err) } else { console.log("New directory that contains PageObjects created.") } }); fs.mkdir("./files/a/main", { recursive: true }, function(err) { if (err) { console.log(err) } else { console.log("New directory that contains the main folder created.") } }); fs.mkdir("./files/a/test_scripts", { recursive: true }, function(err) { if (err) { console.log(err) } else { console.log("New directory that contains the test scripts folder created.") } }); fs.mkdir("./files/a/common", { recursive: true }, function(err) { if (err) { console.log(err) } else { console.log("New directory that contains the common functionalities folder created.") } }); fs.mkdir("./files/a/db_connection", { recursive: true }, function(err) { if (err) { console.log(err) } else { console.log("New directory that contains the databese connections folder created.") } });