Twaldigas
  • Member for 7 years, 7 months
  • Last seen more than a month ago
5 answers
votes
10k views
Should I unit test for null values even if it can never happen?
Accepted answer
26 votes

Yes, it is. Because the unit tests are not only for the current version of the code. They are especially for all future versions and if somebody changes the code and does not know what s/he did, the ...

View answer
8 answers
votes
97k views
Can I use Selenium to do Desktop Application testing?
Accepted answer
16 votes

No, Selenium 2 / WebDriver is for web applications only. But there are other tools to automate desktop application GUI tests. http://en.wikipedia.org/wiki/List_of_GUI_testing_tools You can also ...

View answer
4 answers
votes
63k views
How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?
Accepted answer
14 votes

PageObjects The code of automated test cases should be easy to understand and not too complex. If a test fails, we want to know why and this as soon as possible. To allow this exists PageObjects. ...

View answer
9 answers
votes
64k views
What Concepts of Java do i need to learn to use Selenium Webdriver?
8 votes

Java My experience is, that the basics of Java suffice to start developing test cases with Selenium 2 / WebDriver. Myself started developing of Selenium test cases with a basic knowledge about Java. ...

View answer
3 answers
vote
231 views
How is Selenium RC different from Selenium Web driver and some good pointers for a naive beginner to learn to scripting please? Thanks!
3 votes

I assume that you have experience with one of the supported programming languages and a proper xUnit framework for unit tests. If not, choose one of of the programming languages and learn the basics ...

View answer
4 answers
votes
3k views
Do you automate GUI testing and which tool do you use?
3 votes

In my last four years as test automation engineer I developed test automation solutions for web applications and mobile applications. For both application types we always decided to automate ...

View answer
3 answers
vote
110 views
How to test an application without any specification?
Accepted answer
3 votes

Do the following: Get familiar with the application by using it. Try to get an overview and notice the different areas / components you recognize. Use the application from a user point of view. A lot ...

View answer
3 answers
vote
10k views
How to generate a report for test case in selenium webdriver using javascript
3 votes

WebDriverJs is just the driver to control the browser. For the tests itself I recommend a JavaScript based testing framework like QUnit or Mocha. The test framework take care of the test reports. ...

View answer
1 answers
votes
7k views
Getting started with Rest-Assured for REST-Api Testing
Accepted answer
3 votes

Updated Answer You have to import the RestAssured class incl. method as static. import static com.jayway.restassured.RestAssured.expect; Or you call the method on this way: RestAssured.expect() ...

View answer
7 answers
votes
19k views
What is the difference between integration and interface tests?
3 votes

I take a look into the ISTQB glossary and found this two definitions: interface testing: An integration test type that is concerned with testing the interfaces between components or systems. ...

View answer
5 answers
votes
7k views
Selenium - advantages and disadvantages of using Python vs C#
3 votes

First of all: Welcome to SQA. Apart form the features of C# and Python, your team should also use C#. The web testing team can reuse scripts from the automation team. The teams can support and ...

View answer
3 answers
votes
15k views
Using multiple instances of webDriver
Accepted answer
2 votes

Approach 1 Create a class, for example Hull. In the class is a protected variable WebDriver driver. In the class is a method setup() with a @Before annotation. In the method you has a condition: Is ...

View answer
3 answers
vote
4k views
How to accept Alert message in Selenium Java
2 votes

As far as I can tell from your screenshot, you do not face an alert. The "Cookie control" is just a HTML element on your website and is styled to overlay the website. So you just need to click on the ...

View answer
5 answers
vote
26k views
Counting the number of browser windows opened by Selenium
2 votes

IWebDriver has the method WindowHandles. The method returns a collection. So you can use the size of the collection to get the number of open windows. IWebDriver Interface IWebDriver.WindowHandles ...

View answer
2 answers
votes
8k views
Webdriver: Selecting element by position in drop-down menu
2 votes

I don't know what programming language you use, but in Java you can do something like that: Select select = new Select(driver.findElement(By.id("select"))); select.selectByIndex(1); Here is the ...

View answer
3 answers
votes
1k views
Generate test data in which format
2 votes

First of all:There is no best approach. There are just several approaches and you have to decide which one is your favorite. What is the best approach to make test data configurable ? Through ...

View answer
1 answers
votes
3k views
latin characters getting displayed as junk characters from the webdriver getText() command
2 votes

.properties files in Java use always ISO-8859-1. You are not able to save UTF-8 characters into .properties files. You must save the characters as unicode escape characters. In your example the value ...

View answer
5 answers
votes
323 views
New to testing - need direction
2 votes

Manual Testing For the beginning it is very useful to know what kind of tests exists. So you can explore the ISTQB Glossary to discover them and testing terms in general. After that you could try to ...

View answer
1 answers
vote
1k views
How to test and run Liferay portal using Selinium?
2 votes

1.In eclipse i have executed the tests they are working fine, how i have to execute them in production server? Your tests can run in every environment. You can have a Selenium Hub and many VMs with ...

View answer
2 answers
votes
144 views
Which is best for mobile application testing? Manual or Automation?
2 votes

To test mobile applications is very hard. You has so many different devices and operating systems. In some cases you have to test older versions of the application too, to be sure they work with a new ...

View answer
4 answers
vote
152 views
Trainings about mobile app testing
2 votes

The iSQI GmbH provide trainings for Mobile App Testing. The most of them in Germany. For more information click on the following link. - https://www.isqi.org/en/mobile-app-testing.html

View answer
1 answers
vote
1k views
What should happen to Badge count when app is updated?
2 votes

Currently I also test a app with notifications and after upgrading the app, the badge count is still present. The app control the badge. An application is responsible for managing the badge number....

View answer
2 answers
votes
2k views
How to run Selenium WebDriver java/testNG script with Windows Safari browser?
1 votes

You need the SafariDriver extension for your Safari browser and you have to set two system properties: webdriver.safari.driver - Location of the Safari browser extension file webdriver.safari....

View answer
1 answers
votes
111 views
how to click the post button for the following?
1 votes

You have the following options: driver.findElement(By.className="k-button").click(); // Do not work if you have several HTML elements with the k-button CSS class on the same page driver.findElement(...

View answer
1 answers
votes
830 views
Selenium: not able to find element
1 votes

I think a space in the name attribute is not valid. ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("...

View answer
5 answers
votes
10k views
Test reports for Agile software releases
1 votes

I do not know what documentation you currently has or what tools you use. So I do not know is all of the following possible for you. But maybe you found some helpful ideas. Defect Overview How many ...

View answer
2 answers
votes
41k views
Matching any text present on the visible html page
1 votes

Something like this should work: public boolean isTextOnPagePresent(String text) { WebElement body = driver.findElement(By.tagName("body")); String bodyText = body.getText(); return ...

View answer
10 answers
votes
17k views
How can Manual QA's without a programming background learn Automated Testing?
1 votes

1.) Having no knowledge of programming languages, which is the strongest language for automated QA? In general nobody can answer this question. It depends on what you want to auomate and what tool or ...

View answer
5 answers
votes
3k views
How to revert the changes made by selenium in a tear down process?
1 votes

Like Josa Pita says, that is nothing for testing frameworks itself. The developers could write a script to save the current version of the DB. The process should look like that: Save current ...

View answer
1 answers
votes
275 views
How to open and get input from a popup before running test?
1 votes

TestNG provide a lot of annotations for thinks like that: @BeforeTest, @BeforeSuite, BeforeGroups and more: http://testng.org/doc/documentation-main.html#annotations It may be look like that: @...

View answer