Valença
6 years agoOccasional Contributor
RunRoutine multiple scripts with one log
Hello,
I am trying to execute multiple scripts via COM ( javascript ). My problem is: for each RunRoutine that i execute, i got 1 log for testComplete.
Javascript Code:
var projectSuite = "C:\\Testes\\Controle de Transportadoras\\ControleTransportadora.pjs"; var project = "ControleTransportadora"; var unitName = "Multas"; var progID = "TestComplete.TestCompleteX64Application"; try { var te = GetObject("", progID); } catch(e) { te = new ActiveXObject(progID); } var integration = te.Integration; integration.RunRoutine(project,unitName, "clickButton9"); while (integration.IsRunning()) WScript.sleep(100); integration.RunRoutine(project, unitName, "clickButton5"); while (integration.IsRunning()) WScript.sleep(100);
TestComplete Code:
function clickButton9(){ Sys.Process("calc").Window("CalcFrame", "Calculadora", 1).Window("CalcFrame", "", 1).Window("#32770", "", 2).Window("Button", "9", 14).Click(); } function clickButton5(){ Sys.Process("calc").Window("CalcFrame", "Calculadora", 1).Window("CalcFrame", "", 1).Window("#32770", "", 2).Window("Button", "5", 10).Click(); }
Is there a way to get ONE log for all Routines?
Running all routines together the execution time will be more faster.
Hi Valença,
If you use a custom script to run your test, perhaps, it's worth creating a custom test log. You can export the current log to the XML format and parse it to create the report in the format you need. The following article describes the exported structure: