Questions tagged [automated-tests]

1

votes
1

answer
57

Views

Testcafe-hammerhead erorr reset-guard.ja:27

I am getting an error sometimes when I run testcafe /opt/testcafe/node_modules/testcafe-hammerhead/lib/request-pipeline/connection-reset-guard.js:27 throw err; ^
Rafaa Turki
1

votes
1

answer
59

Views

Geb, Spock, Gradle and maxParallelForks

I am having some trouble understanding an issue we are having with our Geb/Spock tests. We are using gradle and we are trying to run our tests in parallel. As I understand it, the maxParallelForks property in gradle will run test classes in separate JVMs. The issue I am running into is when I ha...
jcattau
1

votes
1

answer
51

Views

How to get first occurrence of the element from multiple match found in testcafe

There are cases where I can see multiple node matches found if I evaluate my Selenium xpath/locator. Example: //span[@username='xyz'] ( sample code using Selenium ) if the above relative path matches with multiple nodes (ex: 5 matching nodes found. Find the list of matching nodes below ). In seleniu...
Yuvaraja KS
1

votes
1

answer
71

Views

automation tests execution on mobile devices

In order to address the question, I have to shortly brief you: I'm writing and running e2e-automated-tests in order to test our company's web-site; the purpose is off-course, to make sure we have the site tested on both desktop and mobile phones; our tests are written in typescript, under a node.js...
Eugen
1

votes
2

answer
24

Views

Get docker-compose up to only run certain containers

So i currently can use 'docker-compose up test' which only runs my database and my testing scripts. I want to be able to us say docker-compose up app' or something like that that runs everything besides testing. That way Im not running unnecessary containers. Im not sure if theres a way but thats wh...
Rutger Luther
1

votes
2

answer
36

Views

How to avoid writing browser cookies when running testcafe tests?

I am running the testcafe tests for a website. I want to avoid writing any browser cookies while running my testcafe tests. My website writes cookies but while running tests I want to avoid this. Is there any way to achieve this in testcafe?
Ruchi
0

votes
0

answer
5

Views

Responsive Design Testing using TestCafe

As part of evaluation for a new test automation framework, I am looking to see if we can automate testing for responsive designs of a website. To give you a better idea, today we use the GALEN framework to do this. Our tests cover things like pixel points, height, width, colors, sizes of containers,...
Monnie_tester
1

votes
1

answer
1.3k

Views

How to retrieve the ID of the workitem that started an automated test

Introduction: In VS2012, we have a set of workitems that are planned to be automated. I created a set of automated tests through SpecFlow in VS2010. To connect a workitem with an automated test, I have to select the workitem and search for the automated test that can only be exactly one method. The...
AutomatedChaos
0

votes
0

answer
7

Views

pytest-4.x.x: How to report SKIPPED tests like XFAILED?

When a test is xfailed the reason that is printed reports about test file, test class and test case, while the skipped test case reports only test file and a line where skip is called. Here is a test example: #!/usr/bin/env pytest import pytest @pytest.mark.xfail(reason='Reason of failure') def test...
Ashot Vantsyan
0

votes
0

answer
5

Views

Behat test error after upgrade to Behat 3.3.1 - Too few arguments to function FeatureContext

I'm upgrading my Drupal 8 site to 8.4.8 which automatically upgrade behat to 3.3.1 I just found out my Behat test is no longer work and stuck on the following errors. Here's the error ArgumentCountError: Too few arguments to function Drupal\FeatureContext::__construct(), 0 passed and exactly 1 ex...
fkaufusi
1

votes
3

answer
235

Views

Katalon WebUI.SetMaskedText() randomly wrapping text

I have a field in a popup to enter a phone number with masked text: '( _ _ _ ) _ _ _ - _ _ _ _'. (Masked text means that we are using jquery to automatically format the text being entered. You can learn more here.) The underscores above are just to represent the spaces for the digits of the phone n...
nnewren
1

votes
2

answer
117

Views

Download file - Save popup in Internet Explorer using TestCafe

In Internet Explorer, whenever a download file window is asking for three options 1. Open 2. Save 3. Close Due to company policy, can't disable popup. However, need to handle same in TestCafe automation. What to click save/save as option? Request for a solution.
Hiruthere
1

votes
1

answer
36

Views

After Upgrading Robot Framework to 3.1.1 the variable concatenation does not work

After recently upgrading my robot framework version from 3.0 to 3.1.1 my variable which I used to concatenate directly like Element Should Be Visible ${el}[contains(@class,'icon-expanded')] does no work any longer. I have found a workaround which needs me to explicitly concatenate the varible in...
JSLearner
1

votes
1

answer
50

Views

How to locate/click selector (button) using testcafe

I am trying to test the submission of an application using testcafe. However, I don’t seem to be able to get testcafe to click the ‘Submit Application’. I have tried the following so far: .click(Selector('button').withText('Submit Applicaition')) .click('#submit-application').withText('Submit...
Milka
1

votes
3

answer
152

Views

Can't click a button with javascript using execute_script Selenium

I'm trying to get rid of cookies popup by accepting cookies and clicking confirm. I don't have any problem with clicking an input 'zgadzam się na', but clicking a button 'potwierdź'seems to be impossible. My code: from selenium import webdriver from selenium.webdriver.common.by import By from sele...
Vickers213
1

votes
1

answer
51

Views

Automated mobile testing strategy for the usecases that involves multiple phones - say bluetooth data transfer, etc

What could be the best automation test strategy for mobile uses cases that involve multiple devices: Bluetooth data transfer Push data from one phone and pull the same from other phone Hit like or share button on one phone and see the count updated on the other phone Send SMS from one phone and chec...
RaMo
1

votes
0

answer
45

Views

How can I modify an overwritten array correctly?

How can I overwrite an array, which is marked as modified, in a method? Or is there a way in Dafny just increase the length of an array by one? class ownerIndexs{ var oi : map; constructor(){ new; } } class Pendingstate{ var yetNeeded : int; var ownersDone : bv256; var index : int; } class mo{ var...
Jaroxa
1

votes
0

answer
97

Views

Test execution using gradle connectedAndroidTest does not execute parallely on all connected devices

I am performing instrumented test execution using gradlew connectedAndroidTest on physical devices. But while doing this, I observe that irrespective of number of devices connected to my machine, at max 3-4 devices only have the tests running. For Example - If I have 10 android devices connected to...
Shredder
1

votes
0

answer
39

Views

How can I define my metrics for test on django?

I need to define some metrics for my tests in my application. So I need to my application only deploy if the minimum for my code coverage was 50%, like I defined. So if my tests doesn't pass, my deploy will stop (I use Travis CI for my automation deployment) I use Django for my tests. It's possible?
Rebeca
1

votes
1

answer
523

Views

Rest Assured API difference b/t param() and queryParam()

I am using Rest Assured API Automation framework for API Testing and can anyone tell me difference between the methods param() and queryParam() which we use in get() and POSt() request.
Jawad K.
1

votes
0

answer
110

Views

Jacoco executable generated via an agent attached to tomcat is not generating the proper code coverage data

I am using the following JAVA_OPTS to attach the jacoco agent to the tomcat JVM JAVA_OPTS='$JAVA_OPTS -javaagent:/etc/init.d/jacocoagent.jar=destfile=/**/logs/jacoco.exec,includes=*' I ran my automation against the service and the exec was generated, however, the exec file is only about 2k bytes onc...
sophist_pt
1

votes
1

answer
83

Views

Should I include tests in Docker image? [closed]

When it comes to tests, I can think of two options: Put both test and application in one image. Include only application code in the image. Create a test-specific container that builds after the main image and adds some layers to it (test code, dependencies etc). With the first option, I can test t...
lfk
1

votes
1

answer
336

Views

How to repeat running tests in python selenium using unittest?

Below is displayed my test class . This is good test when i call it once - python3 main.py. There is a problem if I want this test run for example 100 times. How to do that? When I try call by pytest there are warnings sth like this: main.py::TestLoginPage::test_login_invalid_credentials /home/-----...
Maciej.O
1

votes
1

answer
322

Views

Specflow/Gherkin testing XML documents

We have an ASP.NET/MVC WebApi project with a large collection of end-to-end tests driven by Specflow. All the requests and responses so far have been JSON, so this has been working perfectly. Now however we have an endpoint that expects an XML body, which ideally we would have as a literal in the fe...
GoatInTheMachine
1

votes
1

answer
19

Views

Testing granite-ink WebComponents element using Selenium WebdriverJS

I have the following html code using the granite-ink WebComponents element: the code that I tried to test it using Selenium are: var canvas = drawing.findElement(webdriver.By.css('#inputArea')); var actions = driver.actions(); actions.mouseMove(canvas,500,100).mouseDown().mouseMove(canvas,200,60).mo...
Harvey Lin
1

votes
2

answer
59

Views

Visual Studio 2017: Run tests with Startup Projects

I have a solution containing a few projects, three of which startup when hitting the Start button, which are integral to the operation of the program. I have some tests, which have been found by Visual Studio and are inside the Test Explorer panel. The question is: When I hit the Run All button insi...
mainch
1

votes
1

answer
174

Views

In Django test there is empty queryset when assigned to variable but not empty when printed in console during debug

I'm debugging Django (1.11.8) test and observing strange behavior, when stopped in debugger and switched to Ipython console typing: Model.objects.all() returns non-empty Queryset. However, when the same expressions is assigned to variable e.g.: obj_qs = Model.objects.all() then obj_qs is empty Query...
izkeros
1

votes
0

answer
329

Views

Android app testing: Appium does not launch the MainActivity

I'm testing an android app with Appium, but I can't start the inspector because shortly after pressing start session, this error appears. I also add screenshots of the project where you can clearly see the package. I have tried many combinations of capabilities but Appium continues with the same pr...
Manuel Espinosa
1

votes
0

answer
32

Views

Web don't run immediately when using WebDriver driver.get(“”")

I just have learned about selenium. My code: public class FirstTest { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.get('https://mail.google.com/'); driver.manage().window().maximize(); driver....
user2971676
1

votes
0

answer
144

Views

Testing Framework for Kubernetes

I was working before in DCOS mesosphere . I used 'shakedown' framework for creating automation testing for workflow creation that will run as part of our CI/CD pipeline. Now I want to do same kind of automation testing on K8s . Is there any framework that does the job of my interest?? Automation i...
Prashanth
1

votes
0

answer
15

Views

Is it possible to level of microphone audio for automated tests in iOS?

a following challenge: we have an iOS app which controls Audio-Hardware over BT. Currently we are doing simple UI automated tests using standard framework. But the idea is this one: In the app, we control the audio volume with a slider. So pulling the slider to top would increase physical audio vol...
Arnie Schwarzvogel
1

votes
1

answer
148

Views

Skip scenario after first example (python Behave)

Hi :) Is it possible in behave to skip scenario outline if first example fails with specific error? I have scenario with multiple examples but if it fails at the beginning with specified error than there is no need to run the rest.
Ewa
1

votes
0

answer
49

Views

Robot Framework | download SSHLibrary | python2.7 :: how to fix the error : command 'gcc' failed exit status 1

i want to download SSHLibrary in order to develop test automation but every time he asks me again from other libraries to download .... such as *****paramico pyasnl pynacl***** etc until I get to cffi but the problem he shows me an error I can not solve {error : command 'gcc' failed exit status} 1....
Ghassen Ksila
1

votes
0

answer
76

Views

How to print an exception under rspec execution log and rails console?

When Letter Opener email is triggered, it get printed into test.log. I need it to print it under console log. When Feature spec is running and if exception is occurred, it should get printed into server log on terminal. How to inspect the exception when email is triggered in letter_opener_email conf...
Rhunal
1

votes
0

answer
52

Views

Trouble with MdDialogRef from Angular Material testing angular app

Would anyone help me please! I'm trying to test my LoginComponent that uses Angular Material, I already use MdDialogRef on production code and this is my test class so far, where I just want to fill all dependencies to make it run: import { async, ComponentFixture, TestBed } from '@angular/core/tes...
Francisco Sales
1

votes
0

answer
98

Views

Tests executes by priority through entire suite instead of class using TestNG and Gradle

all. I'm using IntelliJ IDEA with Selenium, TestNG and Gradle. After I had added a Gradle to the project my tests running in strange priority. So, I have a XML file for run with TestNG: Test classes looks like: TopMenuTests.class: public class TopMenuTests extends SetupDriver { TopMenuPageObjects to...
SilverK
1

votes
0

answer
420

Views

Appium [MAC] [iOS] Bad pp error

I have an error when trying to launch iOS app by desktop Appium server, i managed to run the test on android device successfully, but failed to do the same for the iOS. The error is: > Bad app: >/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/app>ium-ios-driver/build/Saf...
Ibrahim
1

votes
0

answer
182

Views

Django testing, can't see anything in test database

I am running some tests in Django using from django.test import TestCase and subclassing that. My tests run, but when I step through them in debug mode, I want to check what is happening in MySQL. But I can't see anything in MySQL. (I am using a settings file that points to a local instance of MySQ...
wobbily_col
1

votes
1

answer
49

Views

Random ECONREFUSED from webdriver / chrome

We have written a bunch of e2e tests for an angular4 app, that we are developing. The problem is that I am getting random ECONNREFUSED message from webdriver / chrome, when running automated tests with protractor. - Failed: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:54657 Protractor is running with...
TBowmo
1

votes
2

answer
322

Views

How can I run the same test on browserstack and local browsers?

I've set up NUnit tests that runs on BrowserStack (set up from this example https://github.com/browserstack/nunit-browserstack ) Base class: namespace Bloc.TestProject { public class BrowserStackNUnitTest { protected IWebDriver driver; protected string profile; protected string environment; private...
olemarius

View additional questions