Contributions
Re: Get to know the last operation status in script
Thanks Robert, OnLogEvent has solved my problem. Still to elaborate where and why this problem started : In our framework, Test team is writing the test cases in test management tool in plain Englishand using out translation engine we translated those Englishstatement in to steps and was looking for status of each step whether it failed or passed to feed it back to Test management tool. How are you writing out the status in the first place?- we wehere assuming the step executed sucessfully. ie. i said to click it we have assumed we have clicked and next step will fail due to next action can't be performed if this action is depedent of previous action :( Are you just using what TestComplete automatically records or are you writing your own log message for pass/fail on the last operation? - we were writing our own log messages in file from where we were updating the results back in test management tool. Now we can read the status streight away from test complete logs and push it back. Thanks, Bharat1.6KViews0likes2CommentsGet to know the last operation status in script
Hi All, I need to know the status of the last operation performed in script to report to third party such as was that last click operation was sucessful or had failed ? was that last set operation was sucessful or had failed ? Is there any way i can read the logs for last step as in logs we get status of each step. I tried Project.Logs but does not give me info about the last step set logitem = Project.Logs.LogItem(Project.Logs.LogItemsCount-1) set data = logitem.data(logitem.DataCount-1) status= logitem.Status Please suggest if we have any way. Thanks, Bharat SethiSolved1.6KViews0likes4CommentsRe: TestComplete fails to identify objects in second Execution and require a restart of testcomplete
Hi, This was an issue with the product under test as it was not destroying the object(Dialog) once task is finished and TestComplete was getting confused which one to pick as there was nothing different then the ID (dynamic). In order to correct this after completing the task I have used dispose method of the object to destroy the dialog from memory and then TestComplete started working fine. So the learning here is look for object browser for available objects during execution and may need to dispose them manually if Dev has missed to destroy them. Regards, Bharat1.2KViews0likes0CommentsRe: Test Complete doesn't support webservice that uses authentication with security token?
Many Thanks Alex, That artical does not explain any thing aboutpre-emptive authentication. As pre-emptive authentication is a Basic type authentication and supported as per artical. In SOAPUI, we need to select a radio button to make it work but when trying it in Test Complete, it says not authenticated. It seems although TestComplete support Basic authentication but it is using global preference and no option to make itpre-emptive authentication.1.2KViews0likes0CommentsTestComplete fails to identify objects in second Execution and require a restart of testcomplete
Hi, This is been a very different behaviour for which i am strugling to understand. TestComplte runs fine for very fist iteration for one screen but in second itegartion it stops identifing object from named map and when restrated back it undestand from named map as well. This does the same when executing the script it just fails with message object not found. Please refer to the screen cast below and help me understand wht is wrong here. http://screencast.com/t/Nr4xPYFks8Solved1.7KViews0likes2CommentsRe: Adding Custom header with wsse security tags
Is this a binding that is not supported by Test Complete? Supported Binding Types TestComplete allows creating tests only for those WCF web services that use one of the Following binding types to communicate with client applications: BasicHttpBinding - WCF services communicate with client applications via endpoints that conform to the WS-I Basic Profile 1.1 specification. WSHttpBinding - WCF services communicate with client applications via endpoints that conform to WS-* specifications. NetTcpBinding - WCF services communicate with client applications using the desired TCP port numbers. Creation of functional tests for WCF services that use other binding types is not supported.1.1KViews0likes0CommentsAdding Custom header with wsse security tags
Hi, I have a web service which expect security credential in header tag, but not getting how to add this header information via test completeGeneralEvents_OnWebServiceRequest <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://xyz.xsc"> <wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://Xyz.xsd"> <wsse:Username>Username</wsse:Username> <wsse:Password Type="http://xyz-wss-username-token-profile-1.0#PasswordText">Password</wsse:Password> <wsse:Nonce EncodingType="http://XYZ-wss-soap-message-security-1.0#Base64Binary">XYZ</wsse:Nonce> </wsse:UsernameToken> </wsse:Security> Please advise how should I add this security information in my request via Test Complete. Thanks8.7KViews0likes2Comments