testing

define is not defined when trying to run my intern dojo tests

假装没事ソ 提交于 2020-01-14 05:40:14
问题 I've been trying to get intern to run with the intern-cucumber plugin for ages now. I am super confused about how to get my intern test even running. This is my file structure: project features ar.feature addition.feature models calculator.js tests addition.js ar.js intern.json package.json I want to create unit tests that run in the browser . The main issues arise with my arizona.js file, because it depends on several dojo libraries. Currently, my intern.json configuration file looks like: {

What Exception is thrown on timeout?

萝らか妹 提交于 2020-01-14 03:56:10
问题 What Exception is thrown on connection timeout in HTMLUnit ? 回答1: HtmlUnit uses the Apache HttpClient. The timeout mechanism throws an InterruptedIOException. See the HttpClient documentation. This exception is a subclass of IOException, which can be thrown during any HttpClient execute call (basically whenever you get a page with an HtmlUnit WebClient. 回答2: I think there is a bug, it really should throw a exception but dont throw if you set an timeout great than a value, you can see it in

How to record test cases with robotframework?

不羁的心 提交于 2020-01-14 02:47:11
问题 I recently started using robotframework with the Selenium2Library . I haven't tested using Selenium before, but I know it is possible to record tests using Selenium . In RobotFramework , it says, "it is not possible" . I mean even for a simple login test, I need to write the test , specifying the id of username, password and submit button. However, is there any way by which these tests can be recorded using robotframework ? such as clicking on a text box, entering a string and then clicking

Randomly failing tests jest and supertest Node.js

会有一股神秘感。 提交于 2020-01-13 19:28:48
问题 so long story short I'm developing RESTapi that takes a movie title on POST request to the /movies route, fetches info about that movie from external api and saves that object to the database. On POST /comments you add a comment to the different collection but every comment has a 'movie_id' property that has an associated movie. That's my first bigger project so I'm trying to write integrational tests. Everything is great, at least in my opinion, except 3 weird test cases that are failing

Karate vs Spock

不问归期 提交于 2020-01-13 18:58:50
问题 I've recently found Karate framework for testing Web Services. But there is also Spock framework providing similar ( to my mind ) functionality. What are the differences between the frameworks? I would like to suggest our testers to take a look at it. 回答1: Developer of Karate here. I have only read about Spock but here's my PoV. Karate is laser-focused on testing HTTP web-services, and therefore is designed to manipulate and perform assertions on JSON and XML. As a result - you do not need

Sleak SWT tool, Device is not tracking resource allocation

爱⌒轻易说出口 提交于 2020-01-13 18:36:46
问题 I'm having trouble in testing an RCP application with Sleak because it does not display anything, it only shows the message "WARNING: Device is not tracking resource allocation". I've setup Sleak from this tutorial and I don't know what's wrong. Does anyone know a solution for this? Thanks in advance. 回答1: Do you have the correct version? Can you see the sleak view in your RCP-application? If not make sure it's in your launch configuration. Also double check that you have set the org.eclipse

How to run protractor from webapp?

£可爱£侵袭症+ 提交于 2020-01-13 17:04:41
问题 I've some protractor tests (against angularApp) that I would like to run. To do that, i've created an user interface that prompts an user for the script file. Then I need, somehow, make protractor start and run the test. What are my options to achieve this ? 回答1: You can pass the file to your backend (and save it), which then executes the test as you normally would protractor conf.js . If you don't have a backend that can run protractor via node, then you need to fork your own copy of

Android Emulator from Command Line Has Weird Resolution

无人久伴 提交于 2020-01-13 12:46:26
问题 I'm creating an Android emulator for Espresso testing from a terminal via this command: ./avdmanager create avd -n TestEmulator1 -k "system-images;android-25;google_apis;x86_64" -c 2000M --tag "google_apis" --device "Nexus 5X" However when I run the emulator, the resolution is really off When I check it in the AVD Manager from Android Studio, it looks like the settings are correct. Is there something missing from my command that's causing this issue? It causes all of my tests to fail when run

Android Emulator from Command Line Has Weird Resolution

三世轮回 提交于 2020-01-13 12:45:21
问题 I'm creating an Android emulator for Espresso testing from a terminal via this command: ./avdmanager create avd -n TestEmulator1 -k "system-images;android-25;google_apis;x86_64" -c 2000M --tag "google_apis" --device "Nexus 5X" However when I run the emulator, the resolution is really off When I check it in the AVD Manager from Android Studio, it looks like the settings are correct. Is there something missing from my command that's causing this issue? It causes all of my tests to fail when run

Android Emulator from Command Line Has Weird Resolution

牧云@^-^@ 提交于 2020-01-13 12:45:06
问题 I'm creating an Android emulator for Espresso testing from a terminal via this command: ./avdmanager create avd -n TestEmulator1 -k "system-images;android-25;google_apis;x86_64" -c 2000M --tag "google_apis" --device "Nexus 5X" However when I run the emulator, the resolution is really off When I check it in the AVD Manager from Android Studio, it looks like the settings are correct. Is there something missing from my command that's causing this issue? It causes all of my tests to fail when run