Contributions
Testcomplete 14 with Outlook 2016
Hi, I have this error: TypeError: NamespaceMAPI.Folders is not a function with testcomplete 14 with Outlook 2016 with the following script. It worked in testcomplete12 with Outlook 2014. Does anything have any suggestion? Thanks in advance. Mary var OutlookApplication = Sys.OleObject("Outlook.Application"); var NamespaceMAPI = OutlookApplication.GetNamespace("MAPI"); if (NamespaceMAPI.Accounts.Item(accountName) != null) { NamespaceMAPI.SendAndReceive(false); var inbox = NamespaceMAPI.Folders(accountName).Folders("Inbox"); . . .Solved826Views0likes1Comment401 error. How to use variable tof session and token id?
Hi,, I am having lots of 401 errors, trying to do load testing. I looked at some previous q&a and suggested using variable to store dynamic session and token ID can solve this issue. But I am having difficulties getting the value. any suggestions? Thanks Mary2.3KViews0likes1Comment"Microsoft Jet Database engine cannot open the file" error after switching win10
I was able to run the same script on my win7 machine. Now I switch to win10, re-install testcomplete, copied the entire script over, and try to run it. I am getting "Microsoft Jet Database engine cannot open the file". It is already opened exclusively by another user. I have it open in Exel, I have all permission to the file. No other application is using the file. Do you have any idea what did I miss? I tried closing the spreadsheet, but testComplete will say "External table is not in the expected format"1.3KViews0likes3Commentsproblem with TestComplete and Outlook 2010
Hi I am having problem with TestComplete and MS Outlook 2010. I am trying out the example in TC Document. It only go as far as the 3 line, where it calls Sys.OleObject("Outlook.Application"); and TC ran into runtime error as below. Any idea how to fix it? Thanks Mary function testOutlook2010() { var OutlookApplication = Sys.OleObject("Outlook.Application"); } JScript runtime error. Server execution failed, ClassID: {0006F03A-0000-0000-C000-000000000046}Solved2KViews0likes4CommentsRe: msxml3.dll Unspecified error trying to get httpObj.status.
Hi Robert, This is the first time I tried the code and have not worked before. I tried commented out. httpObj.send(), but still got the same error on msxml3.dll Checkpoint of WebAccessibilityis not preferred because I have a Lot of web pages to check broken links. I'll have tohave a lot of files in WebTesting stores. Mary3.5KViews0likes0CommentsRe: msxml3.dll Unspecified error trying to get httpObj.status.
Hi Robert, I am trying to check broken link. I found the sample code in smartbear site and try running it. It errored out on the switch statement, trying to get httpObj.status. function VerifyWebObject(link, expectedObjectData) { var httpObj = Sys.OleObject("MSXML2.XMLHTTP"); httpObj.open("GET", link, true); httpObj.send(); while (httpObj.readyState != 4 && httpObj.readyState != 1) Delay(100); switch (httpObj.status) { case 200: case 302: if (httpObj.responseText != expectedObjectData) { Log.Message("The " + link + " link is valid", httpObj.responseText); return false; } break; default: Log.Message("The " + link + " link was not found, the returned status: " + httpObj.status, httpObj.responseText); return false; } return true; } function Test() { var page = Sys.Browser("*").Page("*"); var expectedObjectData = ""; // Obtains the links var links = page.contentDocument.links; var linksCount = links.length; if (linksCount > 0) { // Searches for broken links for (var i = 0; i < linksCount; i++) { var link = links.item(i); var URL = link.href; Log.Message("The " + URL + " verification results: " + VerifyWebObject(URL, expectedObjectData)); } } } Thanks Mary3.5KViews0likes6Comments