Contributions
TestComplete stopped regognizing objects
Hi, For some reason Testcomplete does not regognize the objects in my application anymore. All the objects are mapped and worked about a week ago. Now it only regognized the entire window of the application. No updates were done either to TestComplete or the tested application. I am running these tests on two identical machines with same version of the application. On one it works perfectly fine, on the other one it does not regognize any objects anymore. The only difference is that on the currently working machine I have Tescomplete 12.5 installed, and on the machine that stopped working i have 12.6 installed.Solved1.9KViews0likes4CommentsRe: Task Scheduler Fails - Requested Operation Requires Elevation (0x800702E4).
Has someone figured this out yet? On one pc it works perfectly fine, and when i tried to implement the same function on another pc it gave me this error. opening TestExecute works whenI do it manually, but when calling the TestExecute.exe file from task scheduler it throws this error. That doesn't make sence... right?6.9KViews0likes2CommentsSend email function does not work as expected
Hi, I used a function from the TestComplete documentation and filled in the desired values. According to the test log it did what it was supposed to do but the mail has not been sent. I'm kind of new to this so most likely made a dumb mistake.. Hope someone can help me out. Thanks! source of function: https://support.smartbear.com/testcomplete/docs/scripting/sending-email-from-scripts.html Function SendEmail(mFrom, mTo, mSubject, mBody, mAttachment) Dim i, schema, mConfig, mMessage Err.Clear On Error Resume Next schema = "http://schemas.microsoft.com/cdo/configuration/" Set mConfig = Sys.OleObject("CDO.Configuration") mConfig.Fields.Item(schema + "sendusing") = 2 ' cdoSendUsingPort mConfig.Fields.Item(schema + "smtpserver") = "ServerName" ' SMTP server mConfig.Fields.Item(schema + "smtpserverport") = 25 ' Port number (standard) ' If you use Gmail -- mConfig.Fields.Item(schema + "smtpserver") = "smtp.gmail.com" mConfig.Fields.Item(schema + "smtpserverport") = 465 'port number (suggested online) ' If you use Outlook -- ' mConfig.Fields.Item(schema + "smtpserver") = "smtp-mail.outlook.com" ' mConfig.Fields.Item(schema + "smtpserverport") = 25 mConfig.Fields.Item(schema + "smtpauthenticate") = 1 ' Authentication mechanism mConfig.Fields.Item(schema + "Example1@gmail.com") = "" ' User name (if needed) mConfig.Fields.Item(schema + "Password") = "" ' User password (if needed) mConfig.Fields.Update Set mMessage = Sys.OleObject("CDO.Message") mMessage.Configuration = mConfig mMessage.From = mFrom mMessage.To = mTo mMessage.Subject = mSubject mMessage.HTMLBody = mBody aqString.ListSeparator = "," For i = 0 To aqString.GetListLength(mAttachment) - 1 mMessage.AddAttachment aqString.GetListItem(mAttachment, i) Next mMessage.Send If Err.Number > 0 Then Log.Error "Email cannot be sent", Err.Description SendEMail = False Else Log.Message "Message to <" + mTo + "> was successfully sent" SendEMail = True End If End Function Sub MainTest If SendEmail("Example2@gmail.com", "Example1@gmail.com", "Subject", _ "Message body","C:\Users\Therapy\Pictures") Then Log.Message "Message was sent" Else Log.Message "Message was not sent" End If End Sub893Views0likes0CommentsClicking random buttons from popup form
Hi, I have been trying to make a 'random' function for mapped buttons in my test. so that every time the test loops, it will click one of the 12 buttons randomly. how would I be able to do this? I am kind of new to TestComplete :) I tried making a table butI wasn't able to link the WPFControlName to the button name in my table. Thanks!1.1KViews0likes1Comment