Forum Discussion

macheshmeh's avatar
macheshmeh
Contributor
3 years ago

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();
}