Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi Steve,
Sorry for the late reply.
Unfortunately, we've failed to convert the C# code to JScript :(
The issue is related to the callback function used when calling the AutodiscoverUrl method.
I can suggest several approaches to accomplish your task:
- You can continue using your PowerShell script to get the needed data. This thread contains an example demonstrating how to call a PowerShell script in TestComplete. You will just need to add AddCommand to the script and specify the name of the script file: powerShell.AddScript(". .\MyScript.ps1");
- Based on the sample I posted, you can create a small .NET app or a .NET assembly that will get the information you need.
- Work with EWS as with a usual web service. TestComplete provides a built-in feature to work with web services. Refer to the "Testing Web Services - Overview" article to learn more about it. Unfortunately, in this case, you will have to create a script anew.
Let me know which option you choose.