Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

Judging by this: Java.lang.NullPointerException at java.io.FileInputStream.(Unknown Source) at java.io.FileInputStream.(Unknown Source) at com.mercury.qa.base.BaseTest.(BaseTest.java:26) at com.mercury.qa.testcase.LoginPageTest.(LoginPageTest.java:18) ... 26 more } The properties file cannot be found - you should fix the path, or create a ...


0

Not directly the step, but the step can inspect the scenario context. scenario.getSourceTagNames() would return the list of tags - thus you can add a @testEnv tag on the scenario and just perform the extra clicking if this tag is present. With the configuration above, when in not in testing env, you can run all scenarios without @testEnv. More details ...


0

This was answered here. In short: It is possible to add the message as a String to an assertion: assert "a custom message" && expression Since a non-empty String is truthy in Groovy, the assertion will only fail –and produce output– if the expression is falsey + you'll get power assertion output from it.


0

see how-to-get-the-contents-of-a-script-tag-in-selenium element.GetAttribute("innerHTML"); could help you here


1

When using selectors i try to assume nothing. By.cssSelector("form button") is a bad selector because the frontend might change the button to an input[type="submit"]. If possible, i try to mark all my test intends with specific classes. Like By.cssSelector(".e2e-contact-form .e2e-submit"). This only assumes that there are elements with these classes, ...


3

Just be yourself. They asked you to the final round, so they see potential in you. Swamping yourself with more topics and information might overwhelm you more than it benefits. The interviewers will look at you someone with 2 years of experience, not a guru/expert/god/know-it-all. Be honest, and saying I don't know is an good option to most questions. I ...


1

According to the Selenium documentation, this constructor for WebDriverWait requires a long as second argument - the timeOutInSeconds. In Java, when NaN is used in arithmetic operations, the behavior is undefined. You simply need to use some timeout value instead of NaN when creating the WebDriverWait object.


3

I believe you are missing out on the asterisk or the tag details, //* selects all elements in a document, regardless of name, or you could provide the tag name (input, span, table, etc). Try this code: WebElement radio= driver.findElement(By.xpath("//*[@id='mydiv']/form/div[1]/div[3]/label")); or WebElement radio= driver.findElement(By.xpath("//...


1

The must read book for Agile Software Testing is Agile Testing by Lisa Crispin and Janet Gregory. It is generally recognized in the modern Agile Software Quality Assurance field as 'the bible' on what to know and what to do. As for the 2011 syllabus you 'came across'. It might be relevant but why not study the current syllabus. In a profession where we ...


0

To answer your question about the book it's not outdated from Knowledge Gaining perspective even if it might have become somewhat irrelevant due to new exam syllabus. Apart from that all the points are covered properly by the already provided answers. However I would suggest that you can additionally do below things: On your smartphone try to use some ...


3

Note : I am giving my suggestion in Answer as I do not have sufficient reputation to be able to comment. First do not use thread sleep. Second put some implicit or explicit wait between your element finding and if condition statements.


1

if in the beginning a bad design is chosen and the subsequent steps are always based on it, in my opinion it can also run very badly. The whole point of iterative design is to be able to observe those bad decisions and be able to act upon them sooner then later. The team evaluate their design and implementation in each iteration, when the design is "by ...


2

There are a few practices and concepts that are very important to iterative design. First, there should be a refactoring step in every iteration. This allows space for improvements to be implemented so you are not stuck with design decisions that the team has outgrown. Second, the team should be building with an architecture that is as decoupled as ...


1

If you have some html like this: <div id="someID">some text</div> Then calling verify text with Value == some text for xpath=//div[@id='someID'] will confirm that the text is some text If you are filling out an input, usually the html DOES NOT immediately or ever(unless there is some script to update the html) look like this: <input id="...


0

It appears to be an issue with the chrome driver implementation for Mac OSX. Around High Sierra (10.13.0) it looks like Apple introduced increased logging for their Text Services Manager (TSM). From the discussion on this (other library) around the same issue, I don't think it will have any functional issue (but is very annoying). https://github.com/...


0

By looking at the exception and the code again I have noticed that XSSFWorkbook.getSheetAt method returns a 0-based array which you then traverse starting from 0, but not stopping at size-1. That can be a reason you are receiving the IndexOutOfBounds exception. Try changing your for loop to for (int i = 0; i < numberOfSheets-1; i++).


1

Probably. Allure is an open-source project. So you can change the code and decide where to store the results. Also if you can export the report you could manually store it on S3.


0

Unless I'm seeing things, you're hitting "www.wikipaedia.org" instead of "www.wikipedia.org" (you've got an extra "a"). On Wikipedia, the search field has an ID value of "searchInput". Also I have to recommend upgrading to Python 3.7


1

Use JSON extractor from post-processors with proper json path: $.PaymentKeys.


1

I see there's already a good answer for this but I'd just like to add my explicit solution in case it helps anyone. This solution allows you to explicitly say what amount you want any slider to be instead of passing in pixel values or manually calculating it for each slider. So quite simply to move the slider we need to call something like. IWebElement ...


1

That is a html response. You will need to add an extractor to parse the HTML and extract the data. Using Jmeter right click on the thread group and select post processors, then CSS selector extractor. Once added define the variable name as var1, set the CSS selector expression to iframe, set the attribute to sessionKey, set match number to 1 and tick box for ...


9

There are many ways to expend the knowledge as a QA: Read QA blogs. Read Testing books. Hone your QA skills by teaching others. Go to Meet-Up & grow your network. Search & Read the Research Papers. Go to the Conference & Company Seminar. One of the best ways to learn Ask Q/A on Stack Exchange sites. Work on Open Source /Crowd Testing Projects. (...


4

Test open source software and report defects on Github. Maybe start with the top open source applications, you might already be using some. Try to answers questions here on SQA.SE. If you cannot answer them do research (and create a proof of concept) until you can. This helped me greatly. Read testing blogs Read testing books My personal opinion is that ...


0

Try introducing a FluentWait that will ignore the StaleElementReferenceException like this: FluentWait<WebDriver> fluentWait = new FluentWait<>(driver) .pollingEvery(Duration.ofMillis(500)) .ignoring(StaleElementReferenceException.class) .ignoring(NotFoundException.class) .withTimeout(Duration....


0

Using css selectors, instead of class, the syntax to select the tag with a specific class/attribute is tag[attribute='value']. So in your case: [element.text for element in self.browser.find_elements(By.CSS_SELECTOR, "div[class='dept-time']")] More information on css selectors: https://www.w3schools.com/cssref/css_selectors.asp


3

To select the div with the class you can use css (preferred for readability) BY.css Example driver.find_element(By.CSS, 'div.dept-time') or xpath BY.xpath Example driver.find_element(By.XPATH, '//div[@class=dept-time] or if there are multiple classes for that element, use contains Example //div[contains(@class, 'dept-time')] If more than 1 ...


0

public void setup() { initialization(); SigninPage signinPage = new SigninPage(); } Here, you are assigning a SiginPage object to a singinPage local variable. This object is eligible to be destroyed as soon as the method ends. What you probably want to do is to assign this object to an attribute. this.signinPage = new SigninPage(); ...


0

You are on the right track here, but do not reinvent the wheel. Simply serializing the xml with any of the available c# serializers will get You started. I did the exact same thing for a rest API in java. It might even be possible to generate the xsl files and then create classes from them (it was in my case, thanks to the IDE). I am no expert in Visual ...


0

Try this may this code help you- WebDriver driver; public static WebDriver getDriver(){ try{ if(driver == null) { WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); } }catch(Exception e) { e.printStackTrace(); } return driver;...


0

One the main reasons of doing UI automation (more applicable in your case since you said you are using Selenium WebDriver) is to test your application with different types of datasets. This include those for negative testing as well. In your example, I would use automation to parameterize my password with different datasets that include negative ones like- ...


0

Apart from the things already mentioned in the above threads, I would add the following if I give a presentation on automation- How Automation fits in functional testing? A common misconception related to automation is that, it is a replacement for manual testing. Instead, it is actually a part of the overall testing process where manual and automated ...


0

See, i will suggest you that this all is depends on your test cases that what scenarios are they following. From my point, suppose that if test case start from that your admin has select some number of input and Select fields then you come to your Meeting Specific page and here you will count the number of all fields present here, it means you already well ...


0

Not sure why that would happen in Win10 (same thing works for me) but couple of things you could try, depending on what you need: Add width and height options to the Firefox initialisation set to the screen resolution you need it to open as. Also run it headless with those dimensions set (as do you need to see the browser if it's running in the background?) ...


1

As detailed in https://sqa.stackexchange.com/a/38917/8992 Learn about the domain Capture the existing functionality using a tool such as Cucumber or RSpec to document it Make real tests described in English Create Smoke, Happy and Sad cases


1

I don't believe recorders will be faster in the short, nor the long run. Recorded tests need to be re-recorded, are harder to debug. Unless it is easier to get a lot of non-technical people who can continuously update the recorded test-suite. Faster would be writing test scripts and letting people in low costs countries run the scripts daily until you have ...


1

This does not work, you cannot click a link that loads another page. Then go back and expect the earlier found elements to still be there in memory. getelement.get(i).click(); driver.navigate().back(); You need to again find the elements after back. Changed your example code a bit to retrieve the elements again in the loop. By path = By....


1

Test Automation is not about having or not having test cases, which you can automate. This is about you deciding on test automation strategy. I wrote a blog post, which has several links and ideas where to start. Main idea is that you start with strategy: what do you want to automate, what kind of information you want to collect, how will you know that you ...


6

Mindmap all the high-level features of the application together with business owners. Go over the map with stakeholders (e.g users, developers, managers, and sponsors). Do a risk assessment with some key people, maybe also analyze brittle areas based on defect reports. Write automated happy-path tests for the highest risk features first. Create a test-...


3

You could tackle that from two directions. You could take the bugs and ask the people who opened the bugs how to reproduce them. There is your testcase. You can probably start automating regression tests for these bugs immediately. Or you could just write the testcases yourself based on the documents and SUT you have. Maybe there is a business capability ...


1

Every person is having some weakness and strengths. But in professional world every person want to be less prone to mistakes. For achieving this QA tester have to keep in mind below mentioned points and should try to implement in qa services: If a mistake is repeated then QA should make a checklist of that areas and should run the same whenever testing a ...


1

I've written a blog post talking about the different levels of checking in an Ember.js application. Link to it here An Ember.js application looks like this: If we have a function as: fullName: computed('fullName', function() { const firstName = this.get('firstName'); const lastName = this.get('lastName'); if(lastName) { return `${...


1

I am not sure I understand completly so here are two solutions: If the image path does not change use css selector: driver.findElement(By.cssSelector("div[background-image$='medium-chicken-fajita-recipe\");.jpg']")) If the path does change and all you really need to do is select "some" product: Query all divs that have a class 'card-item-img' and select ...


0

Here i can see that in your DOM that your image's path will unique, so if they will not change then you create the Xpath of that div using it's class and bakground-image. and for further reference in making Xpath of background-image you can go through HERE and HERE


1

I have the latest win 10 update and android SDK and not hitting any issues. can you run in cmd ADB version to check ADB version android list target check android API version As stated it may be an issue with your windows system variables. I find editing and updating them a pain and use a great 3rd party tool REE linked below. It shows your system ...


0

When there is no way to trigger the job yourself like its proposed in https://sqa.stackexchange.com/a/38880/35888 you would need some kind of persistent memory. I could imaging a test making the change in the config and writing what was changed in a database (or plain file). A second test would read the database and only perform the necessary checks if ...


1

I recommend the following approach: Find the code that performs the overnight update. Make sure it has good test coverage. For the code that depends on it, replace the actual calls with mock responses. For production ensure you have monitoring on the dependent service


0

UserID field is not a clickable field it's a input field so i will suggest you to use this wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("UserID"))); Second one is why you have define the WebElement two times there is no use of it, change your code like this, may this help:- wait.until(ExpectedConditions.visibilityOfElementLocated(...


3

Have the developers provide you with a way of triggering the scheduled task outside of its normal time slot. Where I currently work this is provided as a webpage that has all of the possible scheduled tasks for a service, with buttons to trigger each one manually. We use this page during our automated tests, and then observe the result. We also do a ...


1

First, to know whether you are a good tester or not (or you have tested a product well or not), the scale to check is the number of bug slips. If the number of bugs from the client / user end is more, and you had missed them in QA, SQA, UAT, Mock Live envs, then the number of bugs speak something isn't it? And to understand the strength and weaknesses, both ...


-1

file = "#{Dir.pwd}" + '/assets/image.jpg' Make sure to add the folder inside your frame-work and commit it just so if you are running it on Linux os it will find it as well.


Top 50 recent answers are included