New answers tagged

0

The .app file URL looks correct. Sharing the full code with the desired capabilities and iOS driver initialisation would be really helpful to analyse the actual root-cause. As per the error message shared: “No route found for /wd/hub/session”, it seems like Appium server is not setup correctly. Usually, qa testing companies follows the below approach of ...


1

That depends on what exactly you use. Playwright could be used with jest, mocha, ... Some examples with mocha: package.json: "scripts": { "smoke-test": "./node_modules/.bin/mocha tests/smoke-tests", "regression-test": "./node_modules/.bin/mocha tests/regression-tests" } then you'd run e.g. $ npm run ...


-1

yes, i am using failFast so if we are running a suite which has 30 spec files and each spec file it having on average 5 IT blocks . So now when we run locally or in jenkins if one of the IT blocks fails then the rest of the specs/IT blocks doesnot execute . I wanted fail fast to only mark the particular IT block or Spec to fail and move on to next spec and ...


0

driver.findElement(By.id("field on screen")).sendKeys(String.valueOf(cell.getNumericCellValue()));


5

Accessibility testing (a11y) is an important part of testing any application. In my experience, it's not done often enough, although more and more companies are getting involved here given legal issues that have cropped up in the last couple of years. Like anything else that is designed by UX or developed by Developers, a11y needs to be tested. Structure: If ...


0

Partial answer- Use Chrome's lighthouse, it's part of the dev tools and does some accessibility tests Some features can be easily tested by automation like tabbing order or usage of correct structure of menus


0

The basic goal for automation in your case seems to be take the load off QA. However, as pointed out the automation scripts have to be written again over a short period of time (unstable build). This is basically not effective, and will cost more in terms of investment. In my opinion, a better way to convince the client would be to stress on the point of bad ...


0

You can use cy.each() It can be helpful for me. But I do not recommend using "for" or "while" looping using Cypress. This loop can be good for JavaScript but Cypress like a chain. You should enter this chain somehow and this is more practicable for performance.


3

const playwright = require('playwright'); (async () => { const browser = await playwright["chromium"].launch({ headless: false}); const context = await browser.newContext(); const page = await context.newPage(); await page.goto('http://www.google.com/'); await page.screenshot({ path: `example-chromium.png` }); locator ...


-1

If you need to provide any kind of reference, I'd go with the syllabus for ISTQB Test Automation exam. https://www.istqb.org/downloads/category/48-advanced-level-test-automation-engineer-documents.html See chapter 1.1 Purpose of test automation Objectives of test automation include: Reducing the total test cost Automating a not stable app build can require ...


2

It is actually about Automation best practice There are good practices in context, but there are no best practices. I have the understanding that Automation Scripts need to be built on a stable build (application) Why? What is a "stable build" in your context? Automation in Testing serves to enhance human capabilities in testing. These ...


2

I don't know if an authoritative answer can be provided, but I think simple logic should suffice: your primary use of automation is regression developing automation scripts takes (a lot) more time than doing the same thing manually If the above is true than it makes sense to invest (a lot of) time in automation on something that will last enough time to ...


2

driver.get( "http://www.uitestingplayground.com/scrollbars") time.sleep(10) driver.execute_script( "arguments[0].scrollIntoView({'block':'center','inline':'center'})", driver.find_element_by_id("hidingButton")) https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView use inline and block options


1

First, this question really isn't about Cypress, but how JavaScript works. Unfortunately, you can't return multiple values in JavaScript like how you're doing it. What you can do is add your variables to an array or an object. This way, you are returning one type with multiple values. Then when you need to use the returned values, you can read the array ...


0

If database creation is slow compared to TRUNCATE, create a pool of databases Then: when each test finishes, it can truncate the DB, and marks that DB as unused in a synchronized in-memory set data structure if a test starts and there is no free DB, it just creates the DB and adds it to the pool Then you end up with databases named like: testdb_0 testdb_1 ...


-2

I think this will help you .Try This method https://webautomationtool.blogspot.com/2021/04/use-of-for-loop-return-in-cypress.html


1

it's a bit embarrassing, (because i remembered I did this before) After doing an mvn clean, and an mvn compile again, Then the issue disappeared. something probably got stuck somewhere and needed a clean again..


1

You can make a call to TestRail's endpoint add_result_for_case. Example in Java: Map data = new HashMap(); data.put("status_id", new Integer(1)); JSONObject r = (JSONObject) client.sendPost("add_result_for_case/1/1", data); You can find the definition of the endpoint here. You can find the complete documentation here and some extra ...


0

If you want to use actions class from selenium use : import org.openqa.selenium.interactions.Actions; new Actions(driver).clickAndHold(e2).moveByOffset(0, -500).perform(); Note: you have to click and hold element at the bottom of the screen and scroll backwards thats why -500 or move from last element to first element: Actions action = new Actions(driver); ...


0

-Dcucumber.filter.tags="(@smoke or @dry)" You can also use -Dcucumber.filter.tags="(@smoke or @dry) and not @positive". Add this to CucumberOption to run the tags from your test runner class: tags = "(@smoke or @dry)" or tags = "(@smoke or @dry) and not @positive"


0

Try to get the attributes of the webElement2 which you are referring at your code. String aa = webElement2.getAttribute("text").toString();


1

It depends If you're testing Tableau and you're after a commercial solution, have a look at Kinesis CI. I haven't personally used the tool but I've seen teams in my organisation use it for their reports (though they eventually moved on from it to building their own Selenium framework). If you're testing Power BI, you don't have a lot of options that I'm ...


0

Here is the ultimate solution specifically when you are dealing with Angular 7 or 8. Instead of waiting for a longer duration using sleep or implicit wait methods, you can divide your wait time into the partition and use it recursively. Below logic will wait for the page to render for a minimum of 300 seconds and a maximum of 900 seconds. /** * This method ...


0

driver.findElement(By.cssSelector("input.gLFyf.gsfi")).sendKeys("selenium"); List<WebElement> suggestions=driver.findElements(By.cssSelector("ul>li.sbct")); System.out.println(suggestions.size()); for(int i=0;i<suggestions.size();i++) { System.out.println(i+" "+...


2

I work in an environment where we have many environments but they're all part of a single release pipeline, i.e., features are first deployed to dev and they progress through all environments until they reach production. I can imagine some organisations might have different environments that are connected to different downstream systems, which possibly ...


Top 50 recent answers are included