macheshmeh
2 years agoContributor
importing function with Java Script
I want to import a function with java script, but it doesn't work, can you please check my code
Unit 1:
function lancerLogic () {
aqTestCase.Begin("lancer l application logic");
Logic = TestedApps.Items(0).Run();
aqTestCase.End()
}
module.exports.lancerLogic = lancerLogic;
...........................................................................................................................
Unit 2:
var lancer_logic = require["lancer_logic"];
function ChangingTime()
{
lancer_logic.lancerLogic();
Aliases.STM_Logic.Main.priseAppelUserControl.tlpHeader.panel1.btnCreerEvenementRadio.ClickButton();
}
Use round brackets for JavaScript,
var lancer_logic = require("lancer_logic");
Same issue as this post Import unit is not working
I've logged a support call for this bug.