Contributions
Functional Testing Webservices with Basic Auth
I am setting up tests for webservices and some of these webservices are hosted on servers that require the use of a user and password using Basic Authorization. When I attempt toexecutemy tests I amreceivinga Unauthorized (401) error on my webservice call. I have searched the help files and these forums and haven't found a solution to my problem. If anyone could point me in the right direction I wouldappreciateit. Thanks, Shad Mecham Progrexion14KViews0likes1CommentRe: Not able to run my script in another environment.
Hello, I have found when I use the recorder for web testing (both keyword and scripted tests) and then change the url from my www.test.com to www.production.com so that I can run the same test on the production site I must edit my recorded script and remove the ToURL calls that are added each time the web page loads to a new page. If you don't do this and use your new URL to launch your test the first time it encounters one of the ToURL operations it will change back to the original URL. Also another suggestion you should include iexplore.exe in your testedApps and set up a variable for the URL you are using to test using a ToURL opperation to go to the web page after launching the testedApp iexplore.exe. This way you can set up a new Test Item and pass in the variable for your URL. This way you can have 2 different test items one with the first URL and another with the second URL that can be ran with out having to change your testedApps. You will still want to use a wild card in your NameMapping so TestComplete can see the objects on the tested pages. Attached you will find a simple project that in test1 I have setup to use a variable to control which URL to test and in test2 you will find an example of the extra ToURL operations that will mess up your tests when using different URL's. I hope this helps you with your issue.1.9KViews0likes0CommentsNetwork Suite Screen Resolution issues
When I run automated tests using Network Suite on a host that has a username and password I am having problems with the host's screen resolution. If I enable the option "Show remote desktop window" the window shows me a connection with a resolution of 460 X 680 causing my test objects to be off screen and TestComplete not being able to interact with them. How do I change this so that it will run in a higher resolution? I do have some hosts that do not require a username and password and they seem to work just fine, however, I also have a few that are part of a domain and require the use of a username and password. I say this as it seems that TestComplete treats these hosts differently. Thanks,11KViews0likes1Comment