automated-tests

Running test on Production Code/Server

馋奶兔 提交于 2019-12-22 07:37:45
问题 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

Rails system test with capybara and headless selenium browser in Docker

◇◆丶佛笑我妖孽 提交于 2019-12-22 07:01:03
问题 TL;DR: Any idea about how to properly configure capybara to be able to drive a remote selenium browser in a docker container with default Rails minitest system test? I'm running Rails in a dockerized env.. Now I want to start some "system tests" but since I'm running inside Docker I come up with some issues. I'm using the default test suite (minitest?) with capybara and selenium-webdriver gems. I've already installed the chromedriver packet in the container using the following: RUN apt-get

Android test coverage report for multi module app

别来无恙 提交于 2019-12-22 05:20:25
问题 We have a multi module application. Where we have 3 library projects and 1 launch project. module1 (Libraray) module2 (Libraray) depends on module1 module3 (Libraray)depends on module1 Launch (Does not have any source code its just a launcher for all lib)depends on module1 and module 2. In module1 we are accessing module 2 and module 3 classes using facade pattern. Due to that we need to write all the test cases in Launch project as we have access the to all the classes in launch project so

Command line automation – expect equivalent

流过昼夜 提交于 2019-12-22 05:04:57
问题 There is a command line tool for which we need to write automated tests. Our test framework is written in C# and I was looking for .NET libraries which would let me do the automation (I know I can use the Process class; redirect the IO; do the validation, but I don't want to reinvent the wheel if possible). Ideally I'm looking for something like an expect library. Any suggestions? 回答1: I realize that this is an old question, but no one has answered. IMO, I've always had to reinvent the wheel

What scripting tool can I use for automated testing of Delphi programs? [closed]

試著忘記壹切 提交于 2019-12-22 04:13:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm looking for a tool for automated testing. I will use scripting for testing, rather than just automating, which means that it can't just send some key-presses. It needs to examine the app's window to see if it was updated correctly. The cheaper the better, with no downside limit on cost. ;-) I need a real

How do I run a single integration test in grails 3?

[亡魂溺海] 提交于 2019-12-22 04:11:56
问题 Grails 3 (at least 3.1.10) is flaky in running only specific tests. How do I get it to run a single integration test? 回答1: Here is a sample command to run a single integration test grails test-app *LoginFunctional* -integration If you put -integration flag before pattern, the test-app command will ignore the pattern and execute all integration tests. 回答2: I usually use annotation @IgnoreRest . Remember to import spock.lang.IgnoreRest and run test on specified class. 回答3: The official command

Run internet explorer as different user using Selenium

邮差的信 提交于 2019-12-22 01:36:22
问题 I want to launch single Internet explorer instane as different user with Selenium . I referred to the following post but not getting anywhere. How can I run Internet Explorer Selenium tests as a specific domain user? Can you point me in the right direction how it can be achieved? 回答1: You can achieve that using URI authentication. For Google Chrome that behavior works without any additional changes, but for IE it blocked by default. You can unlock it by: Set the DWORD value's value data to 1

Tcl/Tk - automating GUI testing

☆樱花仙子☆ 提交于 2019-12-22 01:30:55
问题 I want to automate the testing of my GUI. I went through the following post but if someone can post a sample test code for the following example it would be much easier for me to understand. The following is my simple Hello World code. namespace eval Gui { } proc Gui::hello {} { toplevel .hello wm title .hello "Hello" wm resizable .hello 0 0 ;# not resizable # create a frame to hold the check widgets set f [frame .hello.boolean -borderwidth 10] pack $f -side top # OK and Cancel buttons button

Rational Functional Tester - How can I get scripts called from a parent script to use the parent's data pool?

别来无恙 提交于 2019-12-21 21:59:21
问题 I'm fairly new to Rational Functional Tester (Java) but I have one large blank. I have an application that is in an agile development environment so some of the screens can flux as new interfaces are brought online. For this reason I'm trying to modularize my test scripts. For example: I would like to have a login script, a search script, and a logout script. I would then stitch these together (pseudo code) Call Script components.security.Login; Call Script components.search.Search; /

How to rerun the failed cucumber scenarios in protractor?

我们两清 提交于 2019-12-21 18:58:07
问题 As a part of testing, i was using typescript language to develop the code which will be compatible for protractor, i was using BDD framework in which i had defined some cucumber options in my config.ts as following: capabilities: { specs: "../example.feature" } cucumberOpts: { compiler: "ts:ts-node/register", format: "rerun:./reports/rerun.txt", require: "../../stepdefinations/*.ts", strict: true } onComplete: () =>{ Reporter.createHTMLReport(); } As mentioned in format, i was able to get the