// TARGET: "C:\blp\Wintrv\wintrv.exe" // START_IN: using LoginPI.Engine.ScriptBase; /* -Disclaimer: This workload is provided as-is and might need further configuration and customization to work successfully in each unique environment. For further Professional Services-based customization please consult with the Login VSI Support and Services team. Please refer to the Help Center section "Application Customization" for further self-help information regarding workload crafting and implementation. -------------------------------------------------------------------------------------------------------------------------------------------- -Run the workload against the "target" workspace using Script Editor to ensure it will work before uploading it and testing with it -Go through the workload to understand what it's doing. Comment out any unneeded app tests (code blocks) or add on any needed functional testing - Steps: - Launch Bloomberg - Run Bloomberg Tour command to open Bloomberg Tour Experience - Wait to allow Bloomberg Tour window to appear - */ public class Bloomberg: ScriptBase { void Execute() { START(mainWindowTitle: "BLOOMBERG*"); // Run Tour command MainWindow.Type("TOUR INSTALL {ENTER}"); // 5-20 second login phase Wait(20); // This needs a find window. Implement with Carl and steal for here. // Select English language using "cmd line" MainWindow.Type("1"); MainWindow.Type("{ENTER}"); Wait(1); // Select Bloomberg Experience Test MainWindow.Type("9"); MainWindow.Type("{ENTER}"); Wait(2); // Toggle shortcuts MainWindow.Type("{ALT}"); // Confirm Bloomberg usage MainWindow.Type("YES"); MainWindow.Type("{ENTER}"); Wait(2); // Toggle shortcuts MainWindow.Type("{ALT}"); // Start Bloomberg Experience Score MainWindow.Type("Start"); StartTimer("Execute_BEXP"); MainWindow.Type("{ENTER}"); // Wait until all of the Bloomberg Experience Test has closed while ((FindWindows(title: "*Monitor", timeout: 2).Length > 0)) { Wait(2); } StopTimer("Execute_BEXP"); // Gracefully exit Bloomberg Wait(10); STOP(); } }