Tag Info

New answers tagged

0

Selenium/Python is what we use and are very happy with it. Re #1: You can write tests in pure Python (without Selenium) to test rest/DB and run them using same test runner. Test are just python programs using Selenium libraries or whatever else you need. And there are libraries for anything I ever needed. Re #2: Python is famously easy to read. Our own ...


0

If you can, talk with the developers. They could quickly develop something like this: If test environment, than accept a specific input oft the captcha; else accept only the real solution of the captcha. In the most cases exist a config file for things like that. Keep in mind, that captchas exist to prevent automation. So I think you has no other option.


0

In your test environment, you need your developers to enable some way of bypassing the captcha. You need to make sure that is only available in your test environment. There are a lot of ways of doing it, commonly it is you typing in a specific string that is recognized by the system to bypass it.


0

There's a lot of them. 2 popular ones that are integrated into most Java IDE's are testng and junit.


-1

I'd hit up Codenomicon Defensics. They discovered Heartbleed so u know they're legit.


0

Did you read the manual? http://jautomate.com/wp-content/uploads/JAutomateManual.pdf Chapter 11 writes about all kind of libraries, including an image library. 11.3. Image Library Place reusable images in the Image Library. Images in the Image Library can be easily and quickly inserted into any script. Use the Add to Image Library menu option to add ...


0

Yes, you can verify daoInterface.insert is called with verify(daoInterface).insert(anyObject());, but you have to mock DaoInterface first with DaoInterface db = mock(DaoInterface.class);. verify(daoInterface).insert(entity); will fail all the time because entity object from verify's argument and entity inside serviceMessage() are different instance. Instead, ...


2

While working on several projects I've described the following procedure to install Appium: Download Android SDK https://developer.android.com/sdk/index.html Extract Android SDK to /usr/local/adt/ unzip -qo adt-bundle-*.zip -d /usr/local/adt Set ANDROID_HOME and JAVA_HOME environment variables export JAVA_HOME=$(/usr/libexec/java_home) export ...


0

This is a sample of working code - selecting sex by male and female radio buttons. /* load that webelement list of radio buttons. then follow the below code & logic List<WebElement> rdBtn_Sex = driver.findElements(By.name("sex")); // Create a boolean variable which will hold the value (True/False) boolean bValue = false; ...


2

Coverage is always coverage related to some model. This often gets skipped over, which leads to much confusion "you said you had 100% coverage so how come there's a bug?!" When you're looking at unit tests, then it's possible to use code coverage as an indicator (there are tools that can measure what percentage of the lines in your code are exercised when ...


0

Use the Actions object to open a new tab. Perform a action who press and hold the ctrl key and after that press the t key. After that release all keys. ctrl and t is the shortcut to open a new tab in the most browsers. To switch between the tabs you use the following shortcut: ctrl and TAB.


0

Visual regression testing is getting a momentum as far as I can see. I started to collect information and do some basic testing with some of them. Here are a couple of places/tools you could check: Thoughtworks radar section on those tools: "This has given rise to a variety of visual regression testing tools, including CSS Critic, dpxdt, Huxley, ...


0

We have started to trial this - http://code.google.com/p/qualitybots/ A project from the Google test team, it's quite a good blog to read. Although at the moment, we heavily test using crossbrowsertesting.com and saucelabs. We split the testing of our websites on different browsers in to three different categories. Functional - Ensuring key process and ...


0

You might also want to take a look at Microsoft's Coded-UI. However, notice it requires Visual Studio Ultimate or Premium.


0

Must say never had success with this using an automated approach. In the end always ended up using in cash terms more expert resource than cheaper eye ball resource. The problem with the last project where I saw this tried was the environment and application changes just came too quickly to gain from unchanged repeated testing; despite the client thinking ...


2

The most efficient tool for testing the appearance of a website is still the human eye and brain. That said, if you want or need to automate, image comparison is probably the least effective method because even with fuzzy logic it can generate far too many false positives. All it takes is a change in hardware (a different monitor or video card - this will ...


-2

If you want to learn Selenium as an automation tool, I'd suggest you to learn it via one of the best blog and get your queries answered as well: http://aroraglobalservices.blogspot.com


0

I would give them a percentage number of test cases automated of all test cases that can be automated. The key here is to develop the full list of test cases that "can" be automated. What test case management tool do you use?


0

I suggest you simply driver.get(URL) to your homepage. Not sure why you consider a hack, if that is what you need to recover from test failure.


0

This should work: class Hull { protected WebDriver driver; @BeforeMethod public void initializeDriver() { // Initialize the driver here. } } class ClassWithTestMethods extends Hull { // Test methods with @Test annotation. // Use the driver variable of Hull in the test methods. } The initializeDriver method should always ...


0

I did this by following code. import java.util.Properties; import javax.activation.*; import javax.mail.*; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; public class emailReport { public static void main(String[] args) { final ...


1

I think you should be able to use JaCoCo to gather coverage of the backend, but there are more coverage tools for Java see: http://en.wikipedia.org/wiki/Java_Code_Coverage_Tools Process looks something like this: Start application with coverage tool enabled Run tests against web-app instance Generate report of coverage files See this article about ...


1

TL;DR: Neither. Use ID or name. I strongly disagree with @Jon Duffy. If your CSS designers are up to snuff, they will create custom class names for the elements, so even if elements are moved around (XPATH changes), the class name itself stays the same. Even if CSS classes have different definitions, the name itself is the same. Also, location by CSS is ...


0

Selenium WebDriver does not test code in the same way as a kit like JUnit. Code coverage tools are not an exact science even for unit tests. With Selenium WebDriver you are testing the views of an application. You could potentially look at the code in your views that are covered in you WebDriver tests and estimate how much code is covered. However I would ...


0

Css is liable to change; UI tweaks, making a site/app responsive etc. By choosing to target elements XPATH the tags will likely stay around much longer and therefore requires less maintenance on your tests. If your site / app is generated using a framework you can have the XPATH targets generated in the back end and maintain some separation from the more ...


0

TestStack White: (partial open-source) White is an open-source framework for automating rich client applications based on Win32, WinForms, WPF, Silverlight and SWT (Java) platforms. It is .NET based and does not require the use of any proprietary scripting languages. Tests/automation programs using White can be written with whatever .NET language, IDE and ...


0

Sikilu: Sikuli automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.


0

I have worked on SilkTest and it is good. Also, as @Ankit mentioned there are many good UI testing tools, you can find here: http://en.wikipedia.org/wiki/List_of_GUI_testing_tools


1

Been the manual QA, moved to automation over 15 years ago. Can now code in Java, C#, C, Python, etc, etc... written automation tests in more tools/languages than I care to remember. Trust me when I say learn Python and WebDriver. You will be productive with this combination faster than any other, and since you are learning as you go, your employer will ...


2

I have seen this sort of thing before and the problem ended up being in how the page was coded: onmouseover vs onchange in our case. You may want to look at the the javascript events for the page, as it sounds very possible that the human interaction is causing some method to run whereas the web driver is changing objects in the DOM, and allowing web driver ...


0

//Add screenshot code as your final test step ScreenCapture sc = new ScreenCapture(); // capture entire screen, and save it to a file Image img = sc.CaptureScreen(); // display image in a Picture control named imageDisplay this.imageDisplay.Image = img; // capture this window, and save it sc.CaptureWindowToFile(this.Handle,"C:\temp2.gif",ImageFormat.Gif); ...


0

OP: Try Python for afternoon, and you will see how much more productive you will be in Python than in Java. Especially if you don't have comp science education. Java is popular because it is "standard" - it does not mean it is a good fit for programmer, especially for beginner. To answer your questions: 1.) Having no knowledge of programming ...


1

Although I have never used them, it seems Unity released their own set of testing tools. See their introduction blogpost: http://blogs.unity3d.com/2013/12/18/unity-test-tools-released/ See their examples: http://blogs.unity3d.com/2014/05/21/unit-testing-part-1-unit-tests-by-the-book/ Get it from the Asset store: ...


1

Approach 1 Create a class, for example Hull. In the cass 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 WebDriver null, initialize; else do nothing. Classes with test cases extends from Hull. Classes with test cases can use the variable driver. Approach 2 ...


0

Skill up to JAVA - Head first java is an excellent option Move onto Selenium Webdriver Some resources to help you: jroller.com/selenium/#tutorial university.utest.com/selenium-basics-part-1-how-to-set-up-selenium qaselenium.blogspot.in software-testing-tutorials-automation.blogspot.in selenium143.blogspot.in


2

It depends on what sort of resources you can afford. Test Automation, done well, is not a part time effort. If you can't afford to have a Toolsmith on your team to work on the Automation Framework you will need help, or expect it to take a long time, or expect it to take effort to keep it going as it gets reprioritized. While most Testers do not spend a ...


4

Here's how I would approach this kind of situation: Unit tests - Evangelize the living daylights out of unit testing. Any kind of business logic automation should be handled by unit tests, as should any other automated tests whose goal is to check the functionality of a single unit of code. This is developer-level code, but tester guidance is essential if ...


8

Extending and maintaining automated tests costs time, but if your team are slaves to updating tests you are doing it wrong. :) One of the biggest reasons to create automated test coverage is to create a fast feedback cycle loop. Letting the test-team fix the tests afterwards slows down this process and will always lag behind. There is a high risk the tests ...


1

I have to disagree with Twaldigas on point three: 3.) I understand the concept of creating scripts to perform tasks, but I've read re-creating my manual tests as scripts isn't the direction I should be headed. What types of tasks should I be looking at to automate? You should automate manual tests. First of all automate the regression tests. ...


4

Why either/or? Work as a team with testers providing test ideas and expertise that the devs can code up. I would also shy away from an emphasis on GUI automation and get the devs working at a unit/system level unless they are doing this already


1

As user246 says, whether you automate your permissions tests depends on the application and whether it can be properly tested that way. The question of what you test and how always depends on the application, its user base, and how critical each feature is to that user base. There are no best practices. This is something that a lot of people find difficult ...


0

I think it is the right decision to let the QA Engineers develop the test automation. Developers aren't testers and do not have the know-how to create good GUI test cases. But you can involve the developers in the development of test automation, if needed. They have useful knowledge about programming and can help you to setup the infrastructure of your test ...


0

I found that Microsoft`s Visual studio really easy to get into its automation tools. Started with the simplest of them, Web Performance and Load tests. These are really easy to get your fingers arround and there are plenty resources/tutorials to help you on your journey. After I got comfy with these I went to CodedUI and by trial and error for a couple of ...


1

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 framework you use for that. Like B. Berndsen says, if you want to use Selenium 2 / WebDriver to develop GUI tests, I also advise Java. But other languages ...


0

I would start learning Java. The reason for that is that most Selenium/Webdriver lessons and books are written with Java in mind. That said, there are some really good guides and tools for Selenium and Python(holmium.core is a really nice framework to build robust automation suites with Webdriver). I'm sure there are tools and guides for other langues as ...


2

There are a lot of ways to answer the first question. Should this specific feature be tested? That depends on how important the feature is and whether it is possible that the feature was broken by a change since the last time the feature was tested. Should the association between permissions and users be tested? See above. Should this specific role be ...


0

I know somewhat similar problem but from the QA perspective. Unfortunately our administrators weren't kind enough to even ask for possible solutions and we heard straight "NO", so I can only give you idea how we've tried to solve it. Best one we've got so far, is to take all necessary clean-up scripts and restrict access to them to just execution (with ...


3

It varies. I've been in situations where the QA database was owned and maintained entirely by the QA team. That database was typically kept as a backup in a network share, and restored into the test environment at need. In my current situation, the data cleanup is handled differently. The database is too large to restore in a viable time frame and contains ...


1

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 version of DB/any kind of data storage. Start test run. After test run finished restore the saved version of the DB/any kind of data storage. But I think it is ...


1

When you run your TCs through TestNG, a test-output folder is created, which contains a file with name emailable-report.html, so basically you need to send that file as an attachment to the stakeholders. Here I've considered the fact that your localhost is configured to send emails. Please find below the code that you can use. import java.util.*; import ...



Top 50 recent answers are included