New answers tagged

0

You can refer GeB manual (Book) on its official site : http://www.gebish.org/manual/current/ Here you can find a good presentation here : http://www.infoq.com/presentations/geb


0

One of the main benefits to running Selenium Grid is you can run lots of parallel tests and in different combinations of environments. Even if you run only one browser + operating system you might still benefit from the fact these are hermetic systems, isolated from each other. Therefore one browser failure won't cause the other tests to fail. Although, ...


0

You should use one of test framework. If you use Java I recommend to use TestNG. Then you can use assertion (e.g. Assert.assertTrue(yourCondition, message) for all fields, it depends on test case and your goal. Note that if any assertion is failed then test execution is finished. If you want to prepare test cases with different login data you can use ...


0

Check with different Xpath- XPath 1: //div[@class='ViewMenu selectedViewMenu'] XPath 2: //*[@class='ViewMenu selectedViewMenu']


0

A new contender that works well is Ghostinspector There are free and paid versions. You can set a tolerance and also target by css selectors, both great features.


1

One non-selenium tool we use (we use the paid version) is GhostInspector which has several options for screenshots including comparing by % difference and by css selectors to target areas.


0

One option for verifying images is to use Applitools + Selenium. It seems to be gaining in popularity among the Selenium crowd as it's not just able to do image comparison but also do layout comparisons. I haven't used it myself but it's on my TODO list. From the looks of it, they have a decent tutorial where you can choose your environment (Selenium) and ...


0

First of all, are these reports ETL reports? If yes, then there are lot of tools available which can help you in automating the whole ETL process like Informatica tools. Cost is a bit high for informatica products. So the other option is look for open source tools. You can get the top tools list from here- ...


0

At this situation We have lots of options- Option 1 : Look for any other attribute which Is not changing every time In that div node like name, class etc. So If this div node has class attribute then we can write xpath as bellow. //div[@class='post-body entry-content']/div[1]/form[1]/input[1] Option 2 : We can use absolute xpath(full xpath) where you ...


1

I think you should continue with your script using Selenium for existing functionality. Once your all sites development work is completed, I mean once your all modules are ready then It's easy to move Selenium script in to Cucumber script. So my opinion you should continue scripting with as usual Selenium for existing functionality, because It's easy to ...


1

Use Sikulix API. Sikuli is a library that will help you compare two images or recognize images when they are displayed on your screen. After the said image is displayed, you can click on the recognized image. Download Link: http://www.sikulix.com/ Go for the download link: https://launchpad.net/sikuli/sikulix/1.1.0 Download sikulix-setup-1.1.0.jar Run ...


2

I would go with rspec using capybara as effectively the next 'layer' down. Your existing experience should make it relatively easy. Make sure your UI tests are backed with a reasonable amount of model and controller tests. How much and what to test vary from place depending on what your built, your adherence to a rest model, etc. Try to put logic in models ...


2

Selenium is a software library to locate elements on web page and interact with them. To deal with images, you need to use different library. Selenium can provide screenshots (images) but you need to use something else to work with such images. As a programmer, you need to master more than a single library, and learn to use right tool for the job.


1

You can calculate hash of images and then compare the hashes for equality. SO has a question on calculating hash


0

Check this code might work import java.awt.image.BufferedImage; import java.awt.image.DataBuffer; import java.io.File; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.imageio.ImageIO; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import ...


2

Use contains() or starts-with() function in xpah : Solution : With contains : //div[contains(@id,'post-body')]/div[1]/form[1]/input[1] With starts-with : //div[starts-with(@id,'post-body')]/div[1]/form[1]/input[1] Let me know If any query.


1

form.form-horizontal > div:nth-child(3) > div > input I suggest spending 20 minutes here


0

I can suggest you Appium is the best tool for Android & iOS mobile testing. I'm working on appium from last 6 months in my organization. The main advantages of using Appium is- cross-platform Backend is Selenium so you will get all selenium functionality Able to test iOS and Android Continuous integration support Doesn't require access to your source ...


4

There are number of tools available in the market like:- a) Robotium b) Uiautomator c) Espresso d) Appium e) Calabash But my experience -I can suggest you Appium is the best tool for both Android & iOS mobile testing. I'm working on appium from last 6 months in my organization it is pretty good. The main advantages of using Appium is- cross-platform ...


0

This is possible in MotioCI. Here are the steps on how to achieve it: Open the assertion in Assertion Studio Add a Generic Comparison Step and give it the same inputs as the existing Numeric Comparison Step. Set the Generic Comparison to "Automatic". Remove the existing Numeric Comparison Step.


1

First off, either you mistyped the HTML or the HTML is malformed -- note the two consecutive <tr> tags. That aside, rather than answer the question, I suggest you look at this StackOverflow question on using sibling operators in XPath.


1

WebElement element=driver.findElement(By.xpath("(//div[@class='selectItemText'])[2]")); Thread.sleep(5000); element.click(); Thread.sleep(10000); driver.findElement(By.xpath("(//nobr[text( )='MDialog'])[4]")).click(); //driver.findElement(By.xpath("//nobr[text()='MDialog']")).click(); ...


0

First of all Select is not working with Div or any other element. Select are use only with element is having Select tag and inside it, only having option tags. Solution : WebElement element=driver.findElement(By.xpath("//div[contains(@id,'isc_FX')]")); element.click(); driver.findElement(By.xpath("//*[text()='MDialog']")).click(); Try this. ...


2

This shows how. "TestNG is used to enable parallel execution on runner level"


0

If you are using Selenium v-2.53 downgrade your Mozilla Firefox version. Selenium v-2.53 has lots of issues with Mozilla Firefox version above 45. So you may use FF v-31.0. Even I have got same issue with this version & It was resolved with Selenium v-2.52 & FF V-31.0


2

That's a connection issue between Selenium and Firefox. There is an open bug on it here that has some information for potential a work-around. The issue, from what I have been able to tell is Firefox 45+ is having issues with Multithreading on a single node from Selenium. Potential fix, untested by me and from the bug report linked above, would be to ...


2

Gorilla Testing is a testing technique in which testers or developers also join to testers to test a particular module thoroughly in all aspects. Gorilla Testing is a technique in which repetitive Manual Testing process, which a tester would have done several times before, is done again to test the robustness of the system. Here, one module of the ...


2

Testing usually falls to a tester/ test engineer, the designing and maintenance of test cases, writing necessary testing code and all the meta-work usually falls to a team lead such as an SQA engineer. To help build a software quality assurance and testing toolbox, here is a list of tips, tools, tutorials, blogs, services, and miscellaneous other resources ...


1

I'm using PrtScr It is quick, and simple... Lets you take a full screen screenshot, or draw the area you want... It also lets you draw with a red line "pen" And you can save the image where you want, or save it on desktop, or simply copy the image to clipboard... Try it...


1

It is also called as- "network penetration testing" or “security testing”. It’s the process to identify security vulnerabilities in an application by evaluating the system or network with various malicious techniques. Purpose of this test is to secure important data from outsiders like hackers who can have unauthorized access to system. Once vulnerability ...


1

## Answer 1 ## When talking about user testing in the UX circles, there’s formal user testing, and then there’s guerilla testing. Formal user testing is the subject of many research papers and studies, but there is relatively little guideline on how guerilla testing should be conducted. Although many UX purists frown on the practice, guerilla testing has ...


1

I have here 2 free testing tools: Nimbus and HotShots. I see the Nimbus (https://nimbus.everhelper.me/screenshot.php) as a rising star of screenshot tools for testers. It enables some after-capture functionalities such as highlighting, frames, text comments etc. Nimbus: It is available as Chrome and Firefox addons, works on Android and runs on Windows. ...


2

There are number of tools available in the market for Screen capture- Greenshot: PicPick: http://ngwin.com/picpick/update?AVGAFFILIATE=11859 Gadwin PrintScreen: http://www.gadwin.com/download/ Jing : https://www.techsmith.com/jing.html SnagIt: https://www.techsmith.com/snagit.html


-1

Try Awesome screenshot. It has plugin for both chrome and firefox Click here for Awesome Screenshot


0

To get all the TextViews from a list you can do something like this: List<AndroidElement> textViews = ad.findElementsByClassName("android.widget.TextView"); for (WebElement textView : textViews) { return textView.getText(); }


1

10 security checks for any web application are as follows - #1 SQL Injection Code injection technique, used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field for execution (e.g. to dump the database contents to the attacker). #2 Broken authentication and session management Authentication and session ...


1

pywinauto might be useful for native C++ based desktop app automation. It uses mostly the same technolgies as AutoIt, but scripts are much more readable and maintainable because it's Python. SWAPY is an object inspector for pywinauto written in Python as well. It has some half-manual code generation functionality if you're new to GUI automation. There is ...


0

Normally, though, developers are more focused with the functional and visual output of their changes, and spend far less time on the security ramifications. When they do focus on security, though, commonly the only things that come to mind are typical, like protecting against SQL injections or access control bugs, but a focus on security should cover far ...


2

Guerilla testing is an inexpensive but highly effective form of test in which a product is subject to high levels of stress until failure. You can see a classic example here.


5

What is Guerrilla Testing : it is a way to get some quick user feedback on your product or prototype. I can say its usability testing. Guerrilla Testing Covers : it covers an activity by which you need to conduct it where your audience are novice users and observe these - Can they find the content? Is the language relevant to them? Have they understood ...


2

Don't, really don't go this way even if it seems tempting. UI automation seems like a low hanging fruit- for example with AutoIt you can automate things really quickly and have a proof of concept running in no time. But the minute you'll hit something new, an environment change, OS popups, hardware change or heaven forbids an optional action you will see ...


3

As of my reading- Guerrilla Testing means going into a coffee shop or another public place to ask people there about your product or prototype. It can be conducted anywhere ex- cafe, library, train station etc, essentially anywhere where there is significant footfall. Guerrilla testing works well to quickly validate how effective a design is on its intended ...


1

I hope this link provide perfect answer to you http://www.tutorialspoint.com/software_testing/software_testing_methods.htm Here they have explained about Black, White and Grey Box testing. White Box testers--> Testers, test the Code of the Project, were this is mostly done on Unit Testing Black Box Testing--> Testers do not have the Knowledge of the code. ...


5

Sikuli can extract text with OCR (optical character recognition) as described on this page: http://doc.sikuli.org/region.html#Region.text Extracting Text from a Region class Region text() Extract the text contained in the region using OCR. Returns: the text as a string. Multiple lines of text are separated by intervening ‘n’. Note: Since this ...


2

If you client is developed in Java/Swing, you may want to try https://marathontesting.com/downloads/ . Is uses Python as a programming language.


0

POSTMAN is the defacto standard when it comes to REST API testing. Its pretty intutive GUI makes REST API testing pretty simple even for the novice testers. The only drawback for this tool is that you would have to do visual validation of your headers, response code, response body etc. There is no automated, batch type interface for creating batch tests. If ...


0

JMeter provides a way to perform distributed testing. This comes in the form of a master-slave setup. In this mode, there is a machine known as a master, which controls a number of client machines (JMeter instances) known as slaves. This approach has some benefits, including managing multiple JMeter instances remotely from the master node, automatically ...


3

I find MITM proxies and Mocks/Stubbing to be the most advanced pieces of Technology in Automated Checking. By using these, it makes it far easier to: Create repeatable, consistent checks Decrease overall execution speed Segregate the application into logical pieces Record executed manual tests But for the real answer, QA's knowledge and senses is the ...


2

The most recent developments that I have observed are: Running tests in the cloud. Companies like Sauce Labs and Browserstack are leaders here. There are many advantages to this, from the number of devices being tested to the number of parallels servers that can be used. Writing UI tests using UI tools. Products such as Ghostinspector, heliumhq and ...


0

Since I don't know what language you're using, I'm going to assume Java. These ideas should be language independent, though. Selenium cannot do this. What you're describing is either the job of a proxy server, or the job of an http library. When you encounter situations like this, it isn't uncommon to introduce additional libraries to use alongside ...



Top 50 recent answers are included