mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update testloader.js
This commit is contained in:
parent
81f196eed2
commit
9d47a18325
|
@ -824,7 +824,8 @@ var test_implements = {
|
||||||
"Which one does Mom like, and which one does Dad like?",
|
"Which one does Mom like, and which one does Dad like?",
|
||||||
"If 100 billion won is deposited into my bank account without my knowledge, what would I do?",
|
"If 100 billion won is deposited into my bank account without my knowledge, what would I do?",
|
||||||
"If my friend passed out from drinking, and Arnold Schwarzenegger suggests having a drink together alone, is it okay to ditch my friend and go with him?",
|
"If my friend passed out from drinking, and Arnold Schwarzenegger suggests having a drink together alone, is it okay to ditch my friend and go with him?",
|
||||||
"If there's a snake in our tent during the company camping trip, should I wake up the manager, or should I escape on my own without waking him up?"
|
"If there's a snake in our tent during the company camping trip, should I wake up the manager, or should I escape on my own without waking him up?",
|
||||||
|
"queen never cry"
|
||||||
];
|
];
|
||||||
|
|
||||||
// Open the Excel window
|
// Open the Excel window
|
||||||
|
@ -1114,6 +1115,29 @@ var test_implements = {
|
||||||
console.log(numbers.statistic.standardDev(array));
|
console.log(numbers.statistic.standardDev(array));
|
||||||
//console.log(numbers.statistic.randomSample(100, 100, 20));
|
//console.log(numbers.statistic.randomSample(100, 100, 20));
|
||||||
console.log(numbers.statistic.correlation(array1, array2));
|
console.log(numbers.statistic.correlation(array1, array2));
|
||||||
|
},
|
||||||
|
|
||||||
|
"backup_vmware_esxi": function() {
|
||||||
|
var OVFTool = require("lib/ovftool");
|
||||||
|
|
||||||
|
// set the credential (username, and password)
|
||||||
|
OVFTool.setCredential("arnold", "I_WILL_BE_BACK");
|
||||||
|
|
||||||
|
// set target virtual machines
|
||||||
|
var targetVMs = [
|
||||||
|
"/MyDatacenter/vm/MyGroup/MyMachine1",
|
||||||
|
"/MyDatacenter/vm/MyGroup/MyMachine2",
|
||||||
|
"/MyDatacenter/host/MyGroup/MyMachine2",
|
||||||
|
"/MyDatacenter/host/MyGroup/MyMachine2"
|
||||||
|
];
|
||||||
|
|
||||||
|
// do backup
|
||||||
|
targetVMs.forEach(function(resourceName) {
|
||||||
|
var job = OVFTool.create();
|
||||||
|
job.setHostName("example.org");
|
||||||
|
job.setResourceName(resourceName);
|
||||||
|
job.saveTo("D:\\");
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user