Contributions
Blank JDBC Connection turning up in Environments.
We are experiencing a little trouble with the JDBC connections, that we have set up for our environments. We have 4 environments that our tests are run on, and we have two databases that we look in. So we set up two JDBC connections in the Databases screen. You can see those at the bottom of the screenshot. This has worked well for a while, but today our tests failed on the GreenSpeak environment, and we found that there was an extra JDBC connection for the environment that did not have a driver or connection string set up. Since that connection was first, for GreenSpeak, in the settings-xml file, ReadyAPI always uses that one. We are puzzled as to where that extra connection has been created from, as it is not shown in the Databases screen, and I can't delete it from the Environment screen. Does anyone know where it comes from? .. so we can ensure that it does not show up again. We have currently deleted the blank connections directly in the settings-file, but we don't want to be doing this on a regular basis.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions660Views0likes0CommentsRe: Firefox 5.x support
While we are waiting for the next TC update to support FF5, FF6 has been released, and it seems that Mozilla has enforced a rapid release model where a new version will be available every 6 weeks. So even FF7 or FF8 might be out before the next TC release. Can we expect TC to handle this in the future?? ... it will be impossible for me to use any new release of FF browser in my tests, and thus we cannot claim to support these to our customers, if TC will have to be updated for every new FF release. Have you guys at Smartbear had any discussions on how to handle this?? ... or is it just tough luck for anyone testing on FF browsers?1.4KViews0likes0CommentsTest Complete and locked machines
I am about to have a major issue I think :) ... soon I should be getting a spanking new QA system setup where I can run automated regression testing every day/night. All is well. Problem is that due to security protocol in the company, our workstations have to be locked when we leave them. It seems that the QA system will be built up, so I would have access to databases and webpages and such on that server through my work station, and that TestComplete would be running locally. This is not so good as I would then have to be at my work station to ensure that it does not lock during test runs. The only solution I can think of right now, is to have a seperate machine somewhere with no keyboard and monitors, that never locks, and then run TC/TestExecute on that, and just use remote desktop to work on it. But I am not sure that security protocol allows for that. So I thought I would hear here on the boards if anyone has any experience with this, what would be the best way to have TC run during the night, without the problems of locking the machine. Would it have to run directly on the server(s) or what can I do to make this work? Any insights, help or thoughts on this would be greatly appreciated.15KViews0likes1CommentSure way of stopping IE9 process every time??
Ok, so I am getting frustrated with IE process. I have some functions that try to close the process nicely, and 90% of the time that works, but sometimes it just refuses to close. So I included a terminate method if it wouldn't close properly. That doesn't seem to work much better. So I am looking for some advice on how to be sure that the process closes every time I want it to. The code I have look something like this: procedure StartBrowser(browser, startURL: string); var Commandline : string; begin // If browser already exists, we close it down browserProcess := Sys.WaitProcess(browser,100); if browserProcess.exists then StopBrowser; // Setting up start page Commandline := startURL; ...... snip ..... end; procedure StopBrowser; var counter : integer; begin browserProcess.close; counter := 0; repeat delay(200); inc(counter); until (browserProcess.exists = false) OR (counter = 50); if browserProcess.exists then begin Log.error('Browser process could not be closed', 'Browser process did not close within timeout period. '); browserProcess.terminate; end else Log.message('Browser process closed', 'Browser process <' + VarToStr(browserProcess.Name) + '> was closed successfully'); Delay(1500); end; So basically what I do is that if the process is already running when I want to start the browser, I try to close it first. I send the close method to the process, and wait up to 10 seconds or until the process no longer exists. If it still exists after 10 seconds I send a terminate method. Sadly, even with the terminate method, the Start script then complains that there is already a process running. How can I make a function that will ensure that the IE browser process shuts down correctly every time?? I have not had these problems with FF3.6/FF4 browser at all.16KViews0likes3CommentsRe: How to repeat a task for 1 hour?
Thanks for the suggestion :) Sadly when I did that, then each run of the test resulted in its own log, so it was difficult to get a good overview of the entire test. But I have found that LoadComplete will probably be able to do the things we need for this type of testing :)1KViews0likes0CommentsHow to repeat a task for 1 hour?
We are currently looking into using TestComplete for Load testing our Webpages. I have made a simple task, that opens each of 5 selected pages for a certain number of virtual users. But it is run only once, and I can't seem to find anywhere, where I can set the number of times it should run the task, or an interval to run in. F.x. we want to know how many times the five pages can be loaded in an hour. But I can't figure out how to do that, and still get all the test results in the same log?? Any help would be appreciated.8.8KViews0likes3CommentsPossible to restart a function on certain conditions?
I have a test where I create a new customer in my system. During creation I make a lookup to an official register of all people here in Denmark. I use the person's social security number to find name and address information. however, once in a while, the person I am trying to look up is address protected, and thus I get an error. My problem is that I have no idea if the selected person (chosen randomly in our database at script start) is address protected or not. Currently all I can do when that happens is stop the script and retry. but is there a way I can restart the whole script if I encounter this type of error? ... basically I just want my script to report a warning in my log, and then retry. I am aware that I can somehow put a giant loop around the whole script, and then repeat until a customer gets through validation. But is that the best/only way of doing this? I would then have to make this loop in every script where I create new customers.16KViews0likes1CommentFirefox 3.6.16 suddenly not showing as an OpenApp in TC
My TC8.20 got stuck (again) during a test run this morning, and I had to kill the TC process in task manager. After restarting TC, I got an error that all my WebTestting licenses had been used, and it then deactivated it in TC. I got the plugin reactivated, and so far testing is runnign fine in IE browser. But when I open Firefox 3.6.16, I can no longer see the Page object, and it is acting as if the browser is not OpenApp. Anyone know why it would be doing this?? .. and more importantly, how to fix it?? I have tried restarting TC and even restarting my PC. But nothing seems to help. Edit: Baahh ... I needed to install the Firefox support plugin as well.20KViews0likes2Comments