automated-tests

Launch WinPhone7 app in emulator programmatically (for automated testing)

你离开我真会死。 提交于 2019-12-22 15:55:14
问题 I'm trying to find a way to launch WP7 applications in the emulator as part of an automated test system. I've tried running XapDeploy.exe from the commandline with a xap specified, no luck there (was worth a shot, right?). I can just terminate the emulator process after a certain amount of time... if only I could launch it. Anybody know if there's a way? 回答1: Justin Angel has written a really detailed post on automating interaction with the emultor for testing. It includes details for

How to Associate Function Libraries to QTP Script?

被刻印的时光 ゝ 提交于 2019-12-22 13:57:16
问题 How to Associate Function library with QTP script outsie the QTP environment. your help is highly appreciated. thanks 回答1: There are 4 Different Ways to Associate Function Libraries to your QTP Script. Please refer this Link 来源: https://stackoverflow.com/questions/11071302/how-to-associate-function-libraries-to-qtp-script

“pause” being ignored

↘锁芯ラ 提交于 2019-12-22 12:17:37
问题 I read that I must be able to run all unit tests in my site with a single command, so I created a bat file to do it. Even with pause before the end, after the phpunit command, the result of the unit tests flashes in the screen. @echo off cd c:\ cd xampp cd htdocs cd light cd myworks echo on set /p site=The site: set /p version=The version: set /p location=The location: phpunit "%site% v%version%/%location%" pause My other batch file with java %folder%/%file% runs the java software, then

Too many connection during unit testing

空扰寡人 提交于 2019-12-22 10:59:44
问题 I have a project with a lot of tests class like class MyTest extends BaseTestCase { public function __construct() { parent::__construct(); $this->em = $this->get('doctrine')->getManager(); } public function setUp() { $this->init(); //load sql data for the tests $path = $this->get('kernel')->locateResource('@Bundle/Data/Test.sql'); $content_file_sql_data = file_get_contents($path); $stmt = $this->em->getConnection()->prepare($content_file_sql_data); $stmt->execute(); $stmt->closeCursor(); } /*

Selenium move mouse cursor to element not work in Firefox [closed]

浪子不回头ぞ 提交于 2019-12-22 10:49:51
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . ================================ OS: Win7 Selenium: 2.33.0 Firefox: 22.0 Python: 2.7.4 ================================ I want to move the mouse cursor to the element "input" with method "move_to_element", but can't do it. Do anyone have this issue? ================================ #!/usr/bin/env

WPF, Project White and Infragistics

你离开我真会死。 提交于 2019-12-22 10:46:02
问题 I am trying to use Project White to write automated tests for my WPF application. It is all going well until I try to interact with Infragistics controls. Has anyone had any experience of this set up and would you be able to post an example of how I can (for example) interact with the XamRibbon or XamOutlookBar? 回答1: Bit of a generic answer I'm afraid, but if White isn't helping you, you can use Microsoft UI Automation directly. First, find your control. If it's got a WPF "Name" then it

Geb: Waiting/sleeping between tests

半世苍凉 提交于 2019-12-22 10:18:24
问题 Is there a way to wait a set amount of time between tests? I need a solution to compensate for server lag. When creating a record, it takes a little bit of time before the record is searchable in my environment. In the following code example, how would I wait 30 seconds between the first test and the second test and have no wait time between second test and third test? class MySpec extends GebReportingSpec { // First Test def "should create a record named myRecord"() { given: to

How should I test a database-driven Django CMS for 404 errors?

廉价感情. 提交于 2019-12-22 08:54:50
问题 I have designed a basic content management system in Django that uses the database to track Article objects, then displays these Article objects on my website. Each Article uses template tags that I frequently update. Occasionally, I will accidentally break one or more articles on my site when I update a template tag. For example, if I change the required arguments for a template tag referenced by a given article, and forget to update the template tag code within that article, the article

How can I test context menu functionality in a web app?

我怕爱的太早我们不能终老 提交于 2019-12-22 08:46:16
问题 I'm playing with a grails app that has a contextmenu (on right-click). The context menu is built using Chris Domigan's jquery contextmenu plugin. While the contextmenus do actually work, I want to have automated tests, and I can't work out how to do it. I've tried Selenium 2.05a (ie. Webdriver), but there's no rightClick method. I notice that HtmlUnit has a rightclick method, but I don't seem to be able to detect any difference in the DOM between before the click and after it. 回答1: Currently

Running test on Production Code/Server

你离开我真会死。 提交于 2019-12-22 07:38:27
问题 I'm relatively inexperienced when it comes to Unit Testing/Automated Testing, so pardon the question if it doesn't make any sense. The current code base I'm working on is so tightly coupled that I'll need to refactor most of the code before ever being able to run unit tests on it, so I read some posts and discovered Selenium, which I think is a really cool program. My client would like specific automated tests to run every ten minutes on our production server to ensure that our site is