aotrautils-srv 0.0.1207 → 0.0.1209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/03/2025-02:12:46)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -824,6 +824,9 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
824
824
|
console.log("WARN : No registered javascript tests to run. Aborting.");
|
825
825
|
|
826
826
|
const emptyTestsSuiteResult={
|
827
|
+
testName: testName,
|
828
|
+
scenarioName : scenarioName,
|
829
|
+
nature: "htmlsj",
|
827
830
|
global:{
|
828
831
|
type:"testsSuiteResult", childrenFailed:0, childrenRunned:0,
|
829
832
|
isFailed:false,
|
@@ -843,8 +846,10 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
843
846
|
// Function 1, case run one test>one scenario
|
844
847
|
const runOneTestOneScenario=function(chosenTestParam, chosenScenarioParam){
|
845
848
|
|
846
|
-
|
847
849
|
let scenarioResultObjLocal={
|
850
|
+
testName:chosenTestParam.name,
|
851
|
+
scenarioName:chosenScenarioParam.name,
|
852
|
+
nature: "htmlsj",
|
848
853
|
global:{
|
849
854
|
type:"scenarioResult",
|
850
855
|
childrenFailed:0,
|
@@ -923,6 +928,10 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
923
928
|
if(functionDefinition && functionParametersPopulated){
|
924
929
|
|
925
930
|
|
931
|
+
// Execution measurment start :
|
932
|
+
scenarioResultObjLocal.global.executionStartTime=getNow();
|
933
|
+
|
934
|
+
|
926
935
|
// DBG
|
927
936
|
console.log("²²²²²² expectedResult",expectedResult);
|
928
937
|
|
@@ -1075,7 +1084,12 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1075
1084
|
// });
|
1076
1085
|
//
|
1077
1086
|
// }
|
1078
|
-
|
1087
|
+
|
1088
|
+
|
1089
|
+
// Execution measurment end :
|
1090
|
+
scenarioResultObjLocal.global.executionEndTime=getNow();
|
1091
|
+
|
1092
|
+
|
1079
1093
|
} else { // IF NOT (functionDefinition && functionParametersPopulated)
|
1080
1094
|
// If no function is the actual object of the test, but if all is in the expected
|
1081
1095
|
// result function (example : for UI tests !) :
|
@@ -1251,6 +1265,8 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1251
1265
|
|
1252
1266
|
// We init a new empty test result object :
|
1253
1267
|
let testResultObjLocal={
|
1268
|
+
testName:chosenTestParam.name,
|
1269
|
+
nature: "htmlsj",
|
1254
1270
|
global:{
|
1255
1271
|
type:"testResult",
|
1256
1272
|
childrenFailed:0,
|
@@ -1319,6 +1335,7 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1319
1335
|
|
1320
1336
|
// We init a new empty all tests result object :
|
1321
1337
|
let allTestsResultObjLocal={
|
1338
|
+
nature: "htmlsj",
|
1322
1339
|
global:{
|
1323
1340
|
type:"testsSuiteResult",
|
1324
1341
|
childrenFailed:0,
|
@@ -1361,6 +1378,8 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1361
1378
|
|
1362
1379
|
// We init a new empty all tests result object :
|
1363
1380
|
let allTestsResultObj={
|
1381
|
+
testName:testName,
|
1382
|
+
nature: "htmlsj",
|
1364
1383
|
global:{
|
1365
1384
|
type:"testsSuiteResult",
|
1366
1385
|
childrenFailed:0,
|
@@ -1383,6 +1402,9 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1383
1402
|
|
1384
1403
|
// We create the single child of this tests suite in the children array:
|
1385
1404
|
allTestsResultObj.children[testName]={
|
1405
|
+
testName:testName,
|
1406
|
+
scenarioName:scenarioName,
|
1407
|
+
nature: "htmlsj",
|
1386
1408
|
global:{
|
1387
1409
|
type:"testResult",
|
1388
1410
|
childrenFailed:0,
|
@@ -4826,7 +4848,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4826
4848
|
|
4827
4849
|
|
4828
4850
|
|
4829
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
4851
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-02:12:46)»*/
|
4830
4852
|
/*-----------------------------------------------------------------------------*/
|
4831
4853
|
|
4832
4854
|
|
@@ -4970,7 +4992,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
4970
4992
|
|
4971
4993
|
|
4972
4994
|
|
4973
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
4995
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-02:12:46)»*/
|
4974
4996
|
/*-----------------------------------------------------------------------------*/
|
4975
4997
|
|
4976
4998
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1209",
|
4
4
|
"main": "aotrautils-srv.build.js",
|
5
5
|
"description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|