ContributionsMost RecentMost LikesSolutionsEmailing Reports Automatically from QAComplete Hello Everyone, I know in QAComplete you can go under Home > Email Alerts to create emails based off of specific conditions. What I'm trying to determine is based off a specific Test Run being completed, how can I email a set list of people that test result? Stop actions from being added to log Hello Everyone, I'm creating a script to remove entered text from 6 separate fields and because of the nature of the test, I have to do this at least 5 times. The script works as intended, but on the final log you see the following: My question is, is there a way to omit those from being added into the log? It really does make it convoluted after several runs and takes away from the pertinent information the log is going to give. Ideally, I would still have a log entry that would say, "All field values have been reset to null" Here is the code I'm using: def ClearAccountRegistrationFields(): Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.FirstName.FirstName_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.LastName.LastName_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.Email.Email_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.ConfirmEmail.ConfirmEmail_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.Password.Password_Field.SetText("") Aliases.AccountRegistration_Page.AccountRegistration_Form.AccountRegistration_Fields.ConfirmPassword.ConfirmPassword_Field.SetText("") Re: Close specific browser script error Close specific browser script error Hello Everyone, I created a script to check for specific web browsers exist, and if so to close them. Otherwise, just add a log message to say the browser wasn't open. Unfortunately I'm getting odd log entries saying steps failed when they technically didn't (To my knowledge). Can you take a look at the script and let me know if you can find a reason for the error? def CheckForChromeBrowser(): b = Sys.Browser("Chrome") if b.Exists: b.Terminate() Log.Message("Chrome browser was detected. Successfully closed browser.") elif b.Exists != True: Log.Message("Chrome browser was not detected. No action needed.") else: Log.Error("Unable to determine if Chrome browser is running. Action failed.") def CheckForIEBrowser(): b = Sys.Process("iexplore") if b.Exists: b.Terminate() Log.Message("IE browser was detected. Successfully closed browser.") elif b.Exists != True: Log.Message("IE browser was not detected. No action needed.") else: Log.Error("Unable to determine if IE browser is running. Action failed.") This is what appears on the log when the specific browser it is looking for doesn't exist: I noticed the code is failing the step because this line of code: b = Sys.Browser("Chrome") So, TestComplete is looking for that object to exist and because it doesn't the step is failed. Obviously I'm just trying to assign that variable and not say to look for it. I also noticed if I just type, if Sys.Browser("Chrome").Exists: Sys.Browser("Chrome").Terminate() TestComplete is still expecting the object to exist and failing the step because it doesn't. Can anyone think of a way around this? SolvedQAComplete Running C#/Selenium Scripts Hello Everyone, I've been reviewing documentation for QAComplete and found mention of it, but I can't seem to find the hard answer I'm looking for. I've been developing web testing automation with C# and Selenium for over a year now (and also with the Nunit framework). Is it possible for me to create scripts in Visual Studio, upload them to QAComplete, and run them to a remote box? SolvedTestComplete Python Scripting Hello Everyone, I came from the world of C# and Selenium automated testing and I'm trying to find my ground with scripting in TestComplete. In C#, I can create extension methods to shorten code and make things much more readable and I'm trying to translate that into python scripts for TestComplete. Here is my example: Method : ClickOn browser = Sys.Browser() page = browser.Page() def ClickOn(button): obj = page.FindChildByXpath(button, True) if (GetVarType(obj) != varNull): obj.Click() else: Log.Message('Unable to locate button') return button LookForObject Method: def LookForObject(object): obj = page.FindChildByXpath(object) if (GetVarType(obj)) != varNull: Log.Message("Verified Object Exists") else: Log.Message("Object is not present on page") return object NameMapping file: SignInPage_SignInButton = "//[@TesterXPath]"; Actual Script: import Actions import SiteCore_NameMapping def U010_Navigate_to_SiteCore_Login_Page(): #Clicks on the the Sign In button in the Navigation Bar Actions.ClickOn(NavigationBar_SignInButton) #Validates navigation was successful by verifying fields and buttons exist Actions.LookForObject(SignInPage_SignInButton) Actions.LookForObject(SignInPage_SignInEmailField) Actions.LookForObject(SignInPage_SignInPasswordField) My problem may be two-fold; I'm still getting familiar with Python syntax, and I'm still learning how TestComplete will be able to interpret my scripting (Maybe threefold, I'm very stuck in my ways with how simple scripts can look with C# :smileyhappy: ) Anyway, I'm receiving a runtime error: Python runtime error: NameError: name 'NavigationBar_SignInButton' is not defined Can someone please shed some light as to why I'm receiving this error? As you can see I did define the variable but maybe not in the correct/needed format? Re: TestComplete Python Scripting Hello Kevin, The reason is because TC uses C# Script, and not the actual C# language. The syntax is different between the two which would take the same amount of effort to understand and adapt to the new syntax, just like the efforts now with Python. I can be mistaken by saying this, but I believe C# Script is more akin to JScript syntax. Python was chosen for my company because Python is used widely throughout our normal day-to-day scripting. Also the fact that its an easy language to grasp. Using Xpath in TestComplete Hello Everyone, As we're getting deeper into using TestComplete we noticed through the name mapping that TestComplete doesn't really pull information that we would want it to so it can identify objects. For example,for our sign out button it pulled ObjectType, href, and ObjectIdentifier. To me, that doesn't seem like concrete evidence that is going to be the sign out button and especially down the line it will be horrendous to try and maintain, as the hierarchy is already getting messy and confusing. So our solution was to create scripts to house all of the buttons we would use and their xpaths to call them. Easily maintened, easily navigated. But the problem I'm facing right now is (the code will be wrong) I'm trying to do something like this: Script: Buttons SignOut_Button = //*[@id='signout']/div[1] Script:ClickTheButton page.Buttons.SignOut_Button.Click(); I haven't been able to find any documentation on how we would be able to make this work. Is anyone able to point me in the right direction? Or is the name mapping part of the program going to be impossible to circumvent? SolvedRe: Collaborate with TestComplete Tests and QAComplete integration Thank you, Robert. I took your advice and posted this question in the QAComplete forum. Just in case you're curious, unfortunately there isn't a sync option between the two applications. If changes are made in TestComplete, the project will have to be zipped and imported into QAComplete as a new test. Updating changes for TestComplete tests in QAComplete Hello Everyone, I can't seem to find any documentation on this, but when I create an automation script through TestComplete I can export the test to QAComplete and have it ran on a schedule. Is there a feature where I can update the test scripts in QAComplete with any changes I make to them in TestComplete? It seems that if I make a change in TestComplete, I will have to remove the test in QAComplete first and then upload it as a completely new test script.