Tag Info

Hot answers tagged

10

Writing unit tests is not difficult - as the saying goes, it is matter of simple programming :-) So if you are competent programmer, and are willing to learn necessary skills and patterns, you can do it as QA engineer. But IMHO (and best practices say that) developers are much better suited to write unit test - because unit tests use internal calls to ...


5

A perspective from a developer: A unit test is best written in conjunction with the code it's testing. It will shape the code to some extent: the need to write a test forces the code to be easily testable, which limits some code smells/anti-patterns. For example, a method that directly calls the database to obtain a user name will be hard to unit test until ...


3

Depends on the tech powering your game. Unity has such testing tools (link).


3

A nice automation question. This question has already been asked on Stack Overflow, in Check the server response code, then export to csv. I don't know how good your python coding skills are, but most of the code is given on that page. It seems to aim to achieve exactly what you want to do. It probably will need tidying up and debugging first though :-( ...


2

It's hard to provide input on your specific processes, but here's how I generally deal with Selenium automation. Maybe it can help you out. One separate database which contains all the data for the tests: data-driven testing. This means you'll likely have to compose Views (combining tables as necessary) which serve as the datasource for test methods. ...


2

One use of automated tests is for regression testing. After changes to the application a suite of regression tests are run to check that existing functionality that should not have changed still works correctly. Another use of automated tests is to apply load to a system to check its performance. This can be to measure transaction timings, to see how the ...


2

Software suites like QTP give a very broad tooling and or development framework to create, manage and drive tests. I would compare suites like this as a text editor vs a full fletched IDE, both can be used to develop software, but an IDE makes life easier most of the time. Tools like this often hide the complexity compared to running automated test from ...


2

It depends on the definition of "Unit Test". The definition is very clear, yet there is still a large number of people who call things that really aren't Unit Tests "Unit Tests". Real Unit Tests test small units of code, usually a single class consisting of up to 200 lines of code. If a developer writes a new class by first writing Unit Tests, they put a ...


1

To be able to do QA, you would need to develop some problem-solving skills. Like using google when you are trying to find some information. You have much deeper problem than not knowing how to start QA. And yes, I left out for you to google what "problem solving" is, and how it relates to what you want to accomplish. You are welcome.


1

As with most terminology this depends on the person and or the industry. Be sure to define terminology per workplace so that everyone has the same definition, in doubt always ask. :) I have worked in market research, where route testing would mean testing all possible paths through a questionnaire. Different questions would mean skipping and or adding extra ...


1

As UI tests are slowish I think its important to be able to run them in parallel. In order to be able to run them in parallel your data-management becomes even more complex, since if the tests use the same data-source they could change data into conflicting states and make tests randomly fail, that why the tests should all run in isolation. Currently I am ...


1

This is a really interesting question. I don't think we're entirely happy with our approach, and we discuss it regularly, but these are our constraints and what we've done so far (framework has been in use for about 3 years). 1) We reload a skeleton database at the start of each test run. This has a minimal set of data, as little as possible - a user, ...


1

Your test is failing and printing "S4:-Fail"? Double check the error messages on the site against the ones in your if clause. It may be failing because of trailing whitespace or something else not easily noticeable by eye. However, this is a good chance to start using asserts to avoid this problem altogether. The great thing about using assertEquals is ...


1

To find out if a specific element has focus, call element.equals(driver.switchTo().activeElement()) More info in this topic.


1

The ISO 9126 has some kind of templates for its own implementation: metrics that can be used for each quality characteristics, guidelines for the measurement process and usage of the standard. You will need a full version of the standard to get it, because these are rarely described in the comments on the standard. So buy it, or grab a copy in your company ...


1

WebElement selectElement = driver.findElement(By.id("id")); Select listBox = new Select(selectElement); int size1 = listBox.getOptions().size();


1

Is it difficult? This greatly depends on your development skills, but as unit-tests are often derived from from a TDD cycle I would think creating tests after the work is done is very hard. Its better to first write the tests first and then the code. I would suggest you start reading the book "Test Driven" (it uses Java), this will make you understand ...


1

Mostly we have heard and read that whitebox testing can be done by Developer not Tester. It is because developer have more and depth coding knowledge. But If you are having really good experience with coding and specific knowledge of programming language in which site/software build , then you can do whitebox testing. Also about your second question it is ...


1

Security concerns with website is not related to manual or automation testing. Testing a software manually or using another software/script(automation) is your choice of approach to your task. Security concerns should be defined at the time of analysis or defining requirements. Depending on what your stakeholders want with an addition of your sapience you ...


1

There are several solutions. The simplest would probably be to list your links in HTML format, and then run that page through a link checker tool. Here's an open source example. Another solution is to set up a testing project in Visual Studio (or a similar environment). You can provide source data in CSV format, see this topic. It's fairly easy to have ...


1

The best advice I can give you is to ask the other team what information they need to be successful. I've been in the opposite position where I'm supposed to automate tests others have made. Aside from this being a bad practice, creating too detailed documents or creating the wrong details will only waste both of your teams time. Send over what you have ...


1

I was able to answer my own question, Please see script below: urlTextBox = "url" dropdownOption = "location" submitBtn = ".//*[@id='start_test-container']/p/input" homeBtn = ".//*[@id='nav']/li[1]/a" webTeamPage = "personalwebpage.com" select = driver.find_element_by_id(dropdownOption) #get the ...


1

You think it's impossible! Not really. Here is how to accomplish this. Short and sweet. QAs are involved in pointing the stories. You decide in sprint planning/refinement if any automation needs to be done on the story. Everyone including QAs know the effort it's going to take. So, you point them keeping that in mind. And, you mention that as an acceptance ...


1

You need to redefine what the definition of "done" is for a ticket. A ticket is not complete until manual testing, documentation, and automation are done. Project Managers might get upset at first but it's not hard to win an argument when you tell them the increase quality means.


1

If your management is so focused on short time returns that it will not invest in increasing your skills to improve your productivity - you should do it anyway in your own free time. All tools and documentation are free, you just invest your time. Of course your progress would be slower, but after some time you should be able to show some results, proving ...


1

Only you can really answer that. A good testing framework that can run functional test automation is software, like any other; you'd have to write it and maintain it, but you might find it easier to add tests when you don't have to worry about flakey record-and-playback, and once you have a decent framework, other developers can pitch in and write tests ...



Only top voted, non community-wiki answers of a minimum length are eligible