Package com.testoptimal.exec.mscript
Class Util
java.lang.Object
com.testoptimal.exec.mscript.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringreturns the admin login emailstatic Stringreturns OS name of this TestOptimal server.static intgetPort()returns the port number used by this TestOptimal server.static Stringreturns current TestOptimal server host namestatic Stringreturns java version number.static Stringreturns version number of TestOptimal release build.static voidsend mail.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
sendMail
public static void sendMail(String fromAddress, String toAddress, String subject, String messageText) throws Exception send mail. Requires javaMail setup in system config (mail.*) for javaMail prop (see https://docs.genesys.com/Documentation/ESEmail/latest/Admin/EmSJavaMail)- Parameters:
fromAddress- from address, if blank passed, it will use the license email addresstoAddress- to addresssubject- subject textmessageText- message body text- Throws:
Exception
-
getAdminEmail
returns the admin login email- Returns:
-
getServerName
returns current TestOptimal server host name- Returns:
-
getOsName
returns OS name of this TestOptimal server.- Returns:
-
getVersionJava
returns java version number.- Returns:
-
getVersionTO
returns version number of TestOptimal release build.- Returns:
-
getPort
public static int getPort()returns the port number used by this TestOptimal server.- Returns:
-