Contributions
Re: Command line to run the task in network suite
I'm coming to this rather late in the game. I've create a Network Suite, and registered a host. I have also created a job that runs my tests remotely, and specified the registered host. This works fine when I'm executing the tests. However,is there any way to specify the host via TestExecute (i.e. I want to make multiple calls to the same job, but run it on a different host each time).1.1KViews0likes0CommentsStarting Distributed Tests from Build Server
I have created a fairly basic login test and am trying to launch it via a post-build event from our Team City server. I've examined two fairly different paths, but both have me stymied at the same point - how to actually launch the tests. On the one hand, I build a C# application to open and run the tests from TestExecute. This runs beautifully when initiated from the local server, but I can't seem to find a hook when to launch it remotely (I've been focusing on PowerShell as a launch tool). As a second attempt, I set up Master & Slave Network Items on my tests, and watched with joy as it ran the tests in Distributed mode on my test VM. But it left me at the same point - I need a routine or method call that I can easily configure to launch my tests. I assume there's something obvious I'm missing here, so if anyone has any ideas, I'd love to hear them (before I plunge into the land of WMI).8.2KViews0likes1CommentKeeping NameMapping valid with variable Page URL
I am new to Smart Bear testing, and we are trying to devise a test suite that is portable enough to be run on different environments using TestExecute. This will enable a combination of build integration, developer testing and QA use. Developers have their own servers and might run using "localhost" with uncommitted code, the build server will deploy the most recent build and QA needs will depend on the version that they are testing. The Project Suite's initial design is with two projects - a "Common" project that will contain Scripts, tests and NameMappings that will be used by all Projects. Then, there will be other projects focused on testing different areas of the application. My initial test is with the Log In page - pretty simple, but it is serving to expose difficulties with the planned architecture. The problem I'm encountering is that the NameMappings are not working when I attempt to use a variable URL. I have created a ProjectSuite Variable for the EnvironmentalURL, and have modified the NameMapping for the page element 'pageTopazEnterprise.URL' property to refer to the variable instead of a constant. Note that in the sample code, the URL property in the NameMapping has been reset to a constant, and all is working properly. When running the test suite, I get the following error: An error occurred while calling the "Wait" method or property of the "pageTopazEnterprise" object. The object or one of its parent objects does not exist. Tested Object Alias: Aliases.iexplore32.pageTopazEnterprise Mapping item: NameMapping.Sys.iexplore.pageTopazEnterprise Missing Object Alias: Aliases.iexplore32.pageTopazEnterprise Mapping item: NameMapping.Sys.iexplore.pageTopazEnterprise Possible causes of the error So the question is obvious - how can we use a variable URL and still keep the NameMappings intact? Our application is far too complex to move forward by manually mapping controls (a lot of drag and drop Silverlight functionality for one, and unnamed controls as well), so the NameMapping is critical. Is there a solution to this problem? I am blocked on further test development until I can get an answer, though I will focus on configuring my servers and a test environment in the meantime. Applicable portions of my test project are attached. Kerry MacLean7.1KViews0likes2CommentsRe: Data-Driven Loop not working
Thanks. I originally had the Logout functionality built in to the VerifyLoginPrerequisites function, and was running before each iteration of the test. I added a cleanup function that essentially does the same steps, and spent a lot of time cleaning up the NameMappings, and it works now. It seems to be very slow between iterations (taking about five minutes to login/logout three times), but it is at least working consistently.856Views0likes0CommentsData-Driven Loop not working
I have created a Keyword Test for my login page to our Silverlight app. The test is pretty basic - it enters the username, the password and selects the desired database to login to (on our application) from a combo-box and clicks submit. The test then verifies the presence of an icon to indicate whether the login attempt was successful. In the case of an invalid username or password, the test expects a popup to submit and verifies the error message on the popup. I ran the test individually using Internet Explorer (32-bit) using three different data-sets: 1) valid username, password and database; 2) valid username & database, invalid password 3) invalid username, valid password and database. For my development tests, I manually changed the parameters on each iteration and ran the test three times (not messing with the browser between tests). Each manual run was successful. I then put the test steps inside a Data-Driven Loop and ran it again. The first set of data is successful, but on the second set of data, the test times out with an error "The object does not exist. See Additional Information for details". The object in question is the userNameTextBox. What could be causing the loss off connection with the browser between data iterations? I'm especially confused because I specifically iterated this manually without the data loop to verify that it wasn't the test code. Do I need to add a delay between test iterations? Any help is appreciated - Test Complete project attached.11KViews0likes3Comments