ContributionsMost RecentMost LikesSolutionsRe: OCR Recognition help I am aware of the fact, that CAPTCHA normally is designed to keep off bots etc. But this captcha is simple text, there is no fancy distortion in the images, or anything.. Just plain text. (I see it as an extra layer of annoyance for the end user in this context) And since it's just plain text, without any distortion added, I thought it should be possible to do an OCR on it.. Oh well, I'll just have to ask the system vendor to set it to a fixed value in all our test environments.. / Thomas Making tests "transport agnostic" (https vs http) I've seen a problem here, where we have two test environemnts running basically the same code drop (internal test, and staging environment) the internal test environment are using plain HTTP, while the staging environment is using HTTPS. If i'm using nameMapping to make my code more manageable, then it stores the http / https in the URL propperty of the mapped objects. It seems that it's not safe to just replace it with a * (wildcard) as it has a harder time mapping the objects. So is there any other way to fix this? (Other than switch all test environments to use the same protocol) SolvedOCR Recognition help Hi I'm trying to decode a simple "captcha" type image, which is pure text, without any added noise. I'm using the latest and greates TC 11.3 (downloaded yesterday) I have tried different hoops and loops, but to no prevail. The target is a website running in IE, and I have no control over the target software or image generation. The following code is what I have experimented so far (Python) def Test1(): captchaImg = Aliases.browser.pageCommonsaas.formFmLocallogin.Image("vertifyCodeImg").Picture(); Log.Picture(captchaImg, "Captcha image") ocrCaptcha = OCR.CreateObject(captchaImg) OCROptions = ocrCaptcha.CreateOptions() OCROptions.ActiveRecognitionSet = 1 OCROptions.ExactSearch = False font = OCROptions.Fonts.Add() font.Name = "Consolas" font.Sizes.Add(18) font.Sizes.Add(16) font.Sizes.Add(20) capCode = ocrCaptcha.GetText(OCROptions) Log.Message(capCode) An example image is attached (as taken from the Log.Picture() code line) Any pointers are mostly welcome. Calculating differences (in days) between two DateTime objectsI'm trying to calulate the difference in days, between two dates in my test script. However, it seems that aqDateTime object, doesn't allow for such calculations? Is there someone out there that have a solution to this problem? Eg. I have two dates 27-10-2014 and 29-10-2014, date difference should be 2, also with the following dates : 31-12-2014 and 02-01-2015. / Thomas SolvedRe: testcomplete 10.10 crash with ADO connectiont to oracleIt seems that this is comming back to me like a boomerang.. The very first query I throw at the oracle server, fails with catastrophic failure. Even after a complete reboot of the machine, where testcomplete resides, results in catastrophic failure when it tries to query the db. I have checked the oracle server for persistent connections, and there is none. I have tried to use the same credentials in my standard query tool (toad), from another machine, this also works fine. So the user is not locked out of the server. I even tried to make a small test script, that just connects to the oracle db, queries a table and then closes the connection. on my own machine it works fine. From the testpc it fails. Seems to me, like there is some configuration, or persistent storrage of something that is kept during a reboot.. But where the *BIIP* is it located? If anyone has a hint for this, he, or she, will become a part of my evening prayer :) / ThomasRe: testcomplete 10.10 crash with ADO connectiont to oracleJust tried to reproduce the problem today, with report generator enabled. And now it works ok. So it seems that it was a temporary time reversal of the flux capacitors energy flow, in a distant galaxy, that caused the problem. Ie. it works as expected again. / ThomasRe: Modern javascript please?add my vote too.. testcomplete 10.10 crash with ADO connectiont to oracleHi I am in the progress of investigating upgrade efforts from TC9, to TC10.. Initialy I tested with one of the very first TC10 builds (10.0.xxx something). Which seemed to work ok.. There where a couple of issues that it couldn't find some buttons in our VB .net app that I am running regression tests on. Everything else seemed to work ok. I then upgraded to TC 10.10.752.7, and it crashed totally on me. It's giving me "Catastrophic failure" now, everytime I have database query against oracle code is as follows: var query = "SELECT * FROM bc.order_line o WHERE o.order_line_status != 'PROCESSED' AND o.order_line_status != 'TERMINATED' AND o.create_date < SYSDATE - 10"; var qrySelect = ADO.CreateADOQuery(); qrySelect.ConnectionString = ProjectSuite.Variables.OpusDatabase; Log.Message("ConnectionString: " + qrySelect.ConnectionString); Log.Message("Executing query: " + query); qrySelect.SQL = query; qrySelect.Open(); the line spewing errors is the last one "qrySelect.Open()". This is working fine in TC9, and in the early TC10 that I tried. But in 10.10 it doesn't work.. Is this a known bug in testcomplete? / Thomas SolvedRe: Editing TC Project outside of TCWhy not make a "testcase" that changes the configuration? What I have done is having a central host, which the testsuite is querying about it's configuration, This is done as a standard SOAP webservice. I then have a script, which is run as the very first "testcase", which configures all the project (suite) variables. This doesn't need to be a webservice, it could also be a textfile on each test execution host, that the script could load with information about where it is running, and what to connect to. So no need to change the configuration files directly before starting up the testrun. / ThomasRe: ODB Connection string fails after upgrade to TC9.xforgot about this.. :) It was a missing dns record on the particular test machine, that caused the problems.. / Thomas