Forum Discussion
12 years ago
Hi Support,
I am not getting an email when the test is failed, i am getting emails when test is passed? here is the code i am using,
'USEUNIT SendMail
Sub Add_Node()
'Runs the "TestedApp1" tested application.
Call TestedApps.TestedApp1.Run
'Enters 'UA[Tab]' in the 'e_user' object.
Call Aliases.rmsgui.LoginDialog.frame.e_user.Keys("UA[Tab]")
'Enters 'ua1234[Enter]' in the 'e_password' object.
Call Aliases.rmsgui.LoginDialog.frame.e_password.Keys("ua1234[Enter]")
'Clicks the 'FIRM' item in the 'Node Path' column of the 'nodeContainerWidget' tree.
Call Aliases.rmsgui.MainWindow.centralwidget.splitter.widget.nodeContainerWidget.ClickItem("FIRM", "Node Path")
'Clicks the 'FIRM' item in the 'Node Path' column of the 'nodeContainerWidget' tree with the right mouse button.
Call Aliases.rmsgui.MainWindow.centralwidget.splitter.widget.nodeContainerWidget.ClickItemR("FIRM", "Node Path")
'Moves the mouse cursor to the menu item specified and then simulates a single click.
Call Aliases.rmsgui.Menu.QtMenu.Click("Create Account")
'Drags from point (54, 10) of the 'LineEdit' object to offset (-134, -8).
Call Aliases.rmsgui.AddBranchDialog.comboBox.LineEdit.Drag(54, 10, -134, -8)
'Enters 'ACCT1[Enter]' in the 'comboBox' object.
Call Aliases.rmsgui.AddBranchDialog.comboBox.Keys("ACCT1[Enter]")
Call SendMail_Test
End Sub
It's generating mails only when test is passed. Please, advice or post me the approprieate code to generate e-mails on test failure.
Thanks,
Niladri
I am not getting an email when the test is failed, i am getting emails when test is passed? here is the code i am using,
'USEUNIT SendMail
Sub Add_Node()
'Runs the "TestedApp1" tested application.
Call TestedApps.TestedApp1.Run
'Enters 'UA[Tab]' in the 'e_user' object.
Call Aliases.rmsgui.LoginDialog.frame.e_user.Keys("UA[Tab]")
'Enters 'ua1234[Enter]' in the 'e_password' object.
Call Aliases.rmsgui.LoginDialog.frame.e_password.Keys("ua1234[Enter]")
'Clicks the 'FIRM' item in the 'Node Path' column of the 'nodeContainerWidget' tree.
Call Aliases.rmsgui.MainWindow.centralwidget.splitter.widget.nodeContainerWidget.ClickItem("FIRM", "Node Path")
'Clicks the 'FIRM' item in the 'Node Path' column of the 'nodeContainerWidget' tree with the right mouse button.
Call Aliases.rmsgui.MainWindow.centralwidget.splitter.widget.nodeContainerWidget.ClickItemR("FIRM", "Node Path")
'Moves the mouse cursor to the menu item specified and then simulates a single click.
Call Aliases.rmsgui.Menu.QtMenu.Click("Create Account")
'Drags from point (54, 10) of the 'LineEdit' object to offset (-134, -8).
Call Aliases.rmsgui.AddBranchDialog.comboBox.LineEdit.Drag(54, 10, -134, -8)
'Enters 'ACCT1[Enter]' in the 'comboBox' object.
Call Aliases.rmsgui.AddBranchDialog.comboBox.Keys("ACCT1[Enter]")
Call SendMail_Test
End Sub
It's generating mails only when test is passed. Please, advice or post me the approprieate code to generate e-mails on test failure.
Thanks,
Niladri