automated-tests

Embedded AMQP Java Broker

孤街醉人 提交于 2019-12-20 09:13:46
问题 I am trying to create integration test for a Scala / Java application that connects to a RabbitMQ broker. To achieve this I would like an embedded broker that speaks AMQP that I start and stop before each test. Originally I tried to introduce ActiveMQ as an embedded broker with AMQP however the application uses RabbitMQ so only speaks AMQP version 0.9.3 whereas ActiveMQ requires AMQP version 1.0. Is there another embedded broker I can use in place of ActiveMQ? 回答1: A completely in-memory

Automated testing a game

て烟熏妆下的殇ゞ 提交于 2019-12-20 08:38:28
问题 Question How would you go adding automated testing to a game? I believe you can unit test a lot of the game engine's functionality (networking, object creation, memory management, etc), but is it possible to automate test the actual game itself? I'm not talking about gameplay elements (like Protoss would beat Zerg in map X), but I'm talking about the interaction between the game and the engine. Introduction In game development, the engine is just a platform for the game. You could think of

Boost Test Vs Google Test Framework

杀马特。学长 韩版系。学妹 提交于 2019-12-20 08:24:24
问题 I am new to Unit Testing world, basically I am c++ developer working on a large product for almost 3 years, and now I've decided to perform automated unit testing of my code. For this I do lot of research on the internet and came across many tools and frameworks and finally chose the following two: 1) Boost Test Libraries 2) Google Test Framework for c++ Now I am confused as to which to choose from those. If someone uses any of the above then please share your experience. 回答1: The below SO

How do I implement AssemblyInitialize/AssemblyCleanup in my CodedUITest in MSVS 2010?

ⅰ亾dé卋堺 提交于 2019-12-20 07:44:05
问题 I am trying to implement AssemblyInitialize/AssemblyCleanup attributes in my Microsoft Visual Studio 2010 for the exact purpose as stated here. That link even describes the process which I need to follow to implement the code. A quick summary of that purpose is to create an initial block of code which will run right before any test no matter which of the codedUITests I run in the solution and then a block of code which will run after the last codedUITest is completed. Example: I need to open

QunitJS-Tests don't start: PhantomJS timed out, possibly due to a missing QUnit start() call

扶醉桌前 提交于 2019-12-20 06:36:29
问题 I have set up my test environment as described here with QunitJS + PhantomJS + GruntJS: http://jordankasper.com/blog/2013/04/automated-javascript-tests-using-grunt-phantomjs-and-qunit/ If I execute the tests (grunt task) locally everything works fine. But If I try to execute the tests on our buildserver it throws following error: I checked the URL and path several times and the html-document for starting the qunit tests is also available on the configured path on our build server. Any ideas

Looping on URLs from Excel file using UiPath

随声附和 提交于 2019-12-20 06:28:57
问题 I have tried several ways but somehow they dont look clean; I have a URL file in Excel format (400+ urls in a column) I want UiPath to read from that file and browse these URLs one by one I tried with making "Navigate to" read from a variable that reads from Excel but it just gets messy and does not work. anyone can suggest some easy way to do it? 回答1: Please elaborate what you want to do. As per my understanding, you have a Excel file with a column containing the URLs and you want to visit

How to import data file for UFT API testing?

柔情痞子 提交于 2019-12-20 05:11:37
问题 I am working on a project which requires to dynamically import the test data on run time and run the API test corresponding to the test data. I tried using XMLload which I directly load from the xml request. This seems to be working fine. But like GUI testing, where we import the test data, I want the same for API testing - where I can import a excel from an external source dynamically and give the values to the request. How can I do this? 回答1: As far as I understand your question, you want

how to record selenium webdriver test executions in python on window x64

爷,独闯天下 提交于 2019-12-20 04:30:21
问题 Using python binding selenium3 webdriver for test automation, to record execution steps using castro but it is failing on Windows 7 x64. Is there any other library or module which can be used for recording purpose Code with castro from castro import Castro from selenium import webdriver from selenium.webdriver.common.keys import Keys from time import sleep def my_video_record(): castroObject = Castro(filename="video/mytest.swf") castroObject.start() firefoxDriver = webdriver.Firefox

Can I Skip Junit Tests if other tests fail?

我的梦境 提交于 2019-12-20 04:26:06
问题 I'm using Junit to run tests with Seleniun WebDriver . I'm trying to split up my tests into function area for better error reporting. I've created tests to test Page load/moving documents to other workflows. If a page load test fails, or a workflow move fails I want to skip the subsequent page/workflow tests. if a Test A fails how can I skip either the rest of the tests in the class or running tests in Class B? NOTE: I realize what I'm asking is "bad Practice* for UNIT TESTS . However, I'm

katalon studio can't load my variables at variable binding section

こ雲淡風輕ζ 提交于 2019-12-20 03:41:51
问题 I wrote a test case and save all text field as variables then I filled in the values in excel, but after I add my Test case and test data to test suite,the variable section can't load my variables. How does this comes out ? 1.Test suite screenshot 2.Variables in test case 回答1: This can be the case that your variables are not setup properly in Variables section of your Test Case. 回答2: After you created your data file you have to use getter to use up values in a test case. A short example: