Questions tagged [automated-testing]

Use for questions involving problems with automated tests. Relevant for designing test automation, debugging test automation, automation tooling questions, and questions about when it is appropriate to automate. Questions regarding specific tools should tag those tools as well.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Is it possible to use methods in java library or a java project snapshot in a protractor project? [closed]

If I create database testing project using java and export to a snapshot(as a jar), can I use it in a protractor project? Hoping to use in protractor project, protractor,jasmine framework along ...
0
votes
1answer
77 views

How correct I executed the test case?

I'm new to Automation Testing. So I have a simple test case - "Login with incorrect username and password". Steps: Open the browser Enter the URL “http://practice.automationtesting.in/” Click on "...
0
votes
2answers
52 views

How do I click on an element available in a specific row where dynamic row is added?

In the below pic, I need to click on the icon in a row which is newly added and column1 value is stored as global variables. Have used the below code, unable to find a solution. WebElement ...
-1
votes
1answer
48 views

Penetration test in a staging environment. When and how much?

We certainly all know the discussion when penetration testing makes sense. In a staging scenario, the test scenario can be interesting to use there to perform a penetration test. And, of course, also ...
4
votes
3answers
389 views

What are the steps/action plan to introduce Test Automation in a company?

My colleague and I have been given the task of Piloting Test Automation in our company. We need help deciding on the Action Plan. Some Actions we noted are as below : Design an Architecture of "...
1
vote
1answer
115 views

Staging Environment with API Gateway Environment

Short description My current test scenario is about designing a test staging environment that is addressed via an API gateway. We chose WSO2. They already have corresponding test frameworks on board, ...
0
votes
0answers
105 views

Cannot instantiate class tests.LoginPageTest

package tests; import java.net.MalformedURLException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.testng.annotations.AfterTest; import org.testng....
-1
votes
1answer
62 views

Getting Null pointer exception

I am new to Cucumber and I am trying a basic cucumber test. I am getting the below error while running the test. java.lang.NullPointerException at stepDefinitions.Test_steps....
0
votes
0answers
36 views

WPF / Winappdriver

My task is to automate a WPF app using appium and Winappdriver. Inspect finds the various elements but Winappdriver doesn't. It turns out that someone in another team got a similar task and had no ...
8
votes
4answers
156 views

Testing Real World Objects - Interview

I have a Junior QA interview coming up, and I was asked to learn the basics of Selenium. I have done this through free tutorials. I am fine with the Selenium concepts, but I was told I would be asked ...
0
votes
2answers
98 views

What books or sites you recommend for learning how to create the best testing strategy for a product?

I work for a very complex and configurable product and I need to improve testing strategy for it. I dont want to deep dive into each of numerous test cases created for it before - instead I want to ...
1
vote
0answers
112 views

How can i use an existing existing chrome browser instance in selenium C#

How do I use an existing chrome browser in selenium C# ? Currently I have the following but it always creates a new window SessionId sessionId = new SessionId(""); var driver = new phantomJSDriver();...
1
vote
1answer
77 views

Is there a way to disable the logs created by the pagefactory

Could someone please let me know if there is any way we can disable the logs generated by the page factory for Chrome and Firefox I did try the below options for chrome and firefox and I had also ...
0
votes
0answers
79 views

Unable to set proxy with BrowserMobProxy while modifying http header request in Selenium with Java

I am able to modify http request header using BrowserMobProxy, the same way explained https://sqa.stackexchange.com/a/37318/9043 But, the problem I am having at the moment is, that I am executing my ...
0
votes
2answers
42 views

Output Contents of an Element?

I am currently creating a tool. That will login into my Krispy Kreme account and then output my saved address. I am currently at the stage where I have managed to use the tool and : log into the ...
-3
votes
2answers
156 views

Is it possible to automate IE webpage dialog in selenium [closed]

F12 is not working on webpage dialog, tried to change the settings of IE with no luck. Dont want to use AutoIT.
0
votes
6answers
95 views

Best websites to do automation testing [duplicate]

I know this is more of a general question, I would like to get some details on the websites that I could use to do automation testing for learning purpose. I'm looking to a website which have ...
-1
votes
1answer
39 views

Automation Selenium - Dynamic XPath [duplicate]

In the below XPath, the index [1] is changing every time. Can we handle this? //button[contains(text(),'Action')][1] HTML: <button aria-expanded="false" aria-haspopup="true" class="dropdown-...
0
votes
1answer
63 views

How to write meaningful test case title in TestNG+Selenium

When writing manual test cases, the test case title used to be something like TC1: Verify that the user is able to login to facebook and react using heart. When trying to automate the scenario ...
0
votes
0answers
22 views

TestComplete Integration with Image based tools

Is there any way to integrate test-complete with image based (Behavior driven) e.g sikuli. If there is a way ! then How can we integrate with it?
0
votes
0answers
28 views

RSelenium: How to click Element in stored page source

I have a quite lengthy scraped page source (it requires a lot of scrolling down to get the full data) in which I need to send clickElement to some elements throughout the page. Because the server ...
0
votes
0answers
37 views

Control is not switched to iframe if I run test case in Firefox: Protractor

I am trying to run my script(Protractor) in Firefox. There is as iframe on page and I need to click on a link in that iframe. That click redirects to new tab and I need to switch in that tab too. ...
0
votes
1answer
59 views

I want to write java code in Jmeter to copy current date in a variable and use this variable in next request. Where should i write?

This is my code: package dateTime; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format....
0
votes
0answers
29 views

How to perform Load/Stress testing on a video calling app in Mobile?

We have a requirement to test the video and voice calling app Load and stress testing. The solution will be implemented using OPENTOK API (WEBRTC video streaming) and will be available on Mobile only ...
0
votes
1answer
85 views

if statement throws an exception “org.openqa.selenium.NoSuchElementException” [duplicate]

There is a requirement to check the link "Show All" on page. If It is displayed on page click on that link to expand all the sites on page, then search and click on "Edit Site" button that is starting ...
0
votes
6answers
122 views

Is using “Selenium & Test NG” the best approach to Automate Regression Test Cases for Web based Application? [closed]

We have a requirement to automate Test Cases for a Web based application. We have to use only open source tools. Total Test Cases would be around 600-700.
-2
votes
2answers
99 views

Website login Issue in Selenium ChromeDriver

I am login to a website using Selenium and ChromeDriver. But website login details are shown as incorrect every time. But I have manually logged into the site using Chrome browser easily. How do I ...
1
vote
3answers
95 views

How to handle unit test / integration test for a Installation / Setup Application that can be used in multiple platform such as Windows, Linux, Unix

I'm handling a code repository that is responsible to deploy / install / upgrade agent that are running on different platform, windows, unix, linux. The code base already has some unit test to cover ...
0
votes
1answer
88 views

From a .side file to a GitLab CI/CD pipeline step?

Is there a way to add a GitLab CI pipeline step that launches a Selenium test which is coded in a Selenium IDE file (.side) ?
-1
votes
2answers
115 views

Not able to click Logout Button eventhough able to identify the element in selenium webdriver

Environment : IE11 Webdriver/Selenium version : 3.141.59 Language : java Selenium code: driver.findElementByXPath("//span[contains(text(),'Logout')]").click();** HTML code : <span class="v-...
-1
votes
2answers
533 views

How Do I iterate through all the search results in Selenium returned by google search

My test steps are- a) go to google.com b) in the search box start typing a keyword example "IBM" c) google displays all the matching results d) Get the count of matching results in a List of strings....
0
votes
1answer
59 views

Tool which will record my browser actions and allow me to execute the recorded actions from code

I am first time trying out automated web UI testing. I just tried writing selenium python code which logs in to the website, waits till it redirects to target page and then tries to fetch certain ...
3
votes
0answers
51 views

Are there tools for Metamorphic Testing automation?

Reading about how to test a ML model, I've found the concept of "Metamorphic Testing" and this fits perfect on my project. Searching around Google I didn't find any Metamorphic Testing tools to ...
0
votes
1answer
81 views

How to run my selenium runnable jar in a different machine without driver files

I am trying to export my project as a runnable jar and run it without driver.exe files being present. I tried incorporating them with below code to make it independent but still unable to run the jar ...
0
votes
1answer
87 views

How to test SSO integration?

I am doing QA for a website, and they have recently added SSO integration for their website. How can I manually test that this SSO integration is working fine. Also I need to automate the testing ...
1
vote
1answer
51 views

Waiting for asynchronous process in system-tests

Note: I am aware that this topic is broad and maybe subjective, however, I do not know any better place to ask. If you close it, please tell me where I could ask instead. Assuming we are running a ...
1
vote
1answer
112 views

How can I keep this framework scalable?

I am developing an automated test suite for regression testing using Extent Reports, Selenium WebDriver and C#. The tests are confined to a single Visual Studio console app. What I have right now ...
1
vote
1answer
58 views

What is shift left concept means in AGILE?

What is shift left concept means in AGILE? What is agile and shift left concept? How to use it in a software development life cycle
0
votes
0answers
42 views

Fuzzing QNX filesystem using AFL

I am trying to fuzz QNX filesystem using AFL. Can someone please suggest how to fuzz QNX filesystem? One of the possibilities that I thought was to mount the QNX 4 filesystem on Ubuntu and then run C ...
0
votes
1answer
121 views

Why element locators are not suggested in visual studio code for protractor?

I don't get suggestions for "element(by." element locators in visual studio code. Im using protractor. I have changed the settings file also. Settings.js { "editor.quickSuggestions": { "...
0
votes
1answer
293 views

How to fix “Cannot find module” error and “Error: ReferenceError: Element is not defined” in protractor?

I have created a test project using page object model. When I run, it creates "Cannot find module" error. I have tried several answers but didn't work. Here is my code Config.js exports....
0
votes
1answer
88 views

Appium: How to resolve Class cast exception for iOS driver? “java.lang.ClassCastException”

I referred to one of the answers posted in this forum and when I attempted to run following code NetworkConnection mobileDriver = (NetworkConnection) appiumDriver; if (mobileDriver....
-1
votes
1answer
59 views

Why tests fail when run in eclipse after creating through selenium IDE?

I have created many tests using Selenium IDE and exported into java files in order to run in eclipse. All tests work properly in Selenium IDE but when I run in eclipse(java file) it creates following ...
0
votes
1answer
47 views

Unable to execute single tc, login then run other application features, right now its running as a suite

I have to execute my test cases as a single as well as a suite, right now its running as a suite but not as a single test case in selenium webdriver: Below is my test which are calling methods present ...
0
votes
2answers
52 views

How to write an xpath for a specific text from a whole attribute?

So the problem statement is: I need to store a specific number(marked in RED) from the attribute & for that I want to point to that number in an xPath. Is that possible?
0
votes
1answer
55 views

How to click a expand button if ID is randomly generated

I have a problem how to click a desired expand button if ID is randomly generated. This means that the ID has another value after refresh page. Of course, the ID has another value for each row. I don'...
0
votes
3answers
71 views

Element present in driver.getPageSource() but getting NoSuchElement Exception in Selenium with java

Hi I am working on automation -selenium with java. I need to click on a button which is inside a modal popup and the whole is inside an iframe. I tried the following code: driver.switchTo().frame(2); ...
1
vote
1answer
219 views

How to split a variable in Selenium IDE?

I am quite new to Selenium IDE. I want to split an error message and extract the first word of the error message. I have used the following commands as in the image. Following are the results of the ...
1
vote
2answers
64 views

Handling the case when users get different main pages based on usertype after login

It's more like a theoretical question and I am seeking the best practice here. Given an application where you have different user types, newly registered users get a new UI while old users are ...
0
votes
0answers
29 views

Code is not being executed once being tried to come back to parent window

My test case is about opening the child window by pressing the button located on main window and closing the child one and after that, i have to press another button which is in parent window but i ...