New answers tagged

0

These days, Automated software testing is considered as one of the most trending term in the field of software testing, as it is considered as one of the efficient as well as effective software methodology, making the overall software development/testing life cycle better and taking it to some different level. To learn Automation testing, there are few good ...


0

Depending on what exactly you're wanting to automate (just clicking on certain places on the screen? Or actually creating a dialog that expects/interprets certain displays/alerts and then does something -- clicking or typing -- in response?) and the software that is providing your GUI -- check out X11::GUITest or Sikuli.


0

Most answers so far focus on automating the process of generating emails content. Another problem is how to verify whether an HTML content of email renders well in different mail clients. Mail clients tend to be worse in that respect than Web browsers for Web pages, e.g., Outlook 2003 on Windows may render same HTML email different than Yahoo! Mail on ...


0

Try out mailosaur.com It gives you unlimited real test email addresses and allows for automated and manual testing of emails. We have Java, .NET, Ruby, Python and Node.js bindings to make it easy to integrate this in your Selenium (or other) test scripts. Disclosure: I am a co-founder.


0

A new window is basically a new webpage that opens in a separate window or a tab depending on your browser settings. Since you have asked for examples, here it is e.g. visit appium tutorial webpage. Click on any chapter say chapter 1. It will take you to new window/tab. An alert box or pop up window is often used if you want to make sure information ...


0

You can check links by regex, spelling thru dictionary - but spelling checking is better made by person - there will be always something, which will not pass...


0

Checking Website for broken links and Spell check is considered an important part for Manual testing teams at software testing company. Doing it manually would be a nightmare, so today we’re going to look at a few tools to automate these type testing services which can speed things up for a manual testing. Checking Website for broken links and Spell check ...


0

The support matrix is right: Java GUI testing is not supported by Coded UI Test. Generated code from recoded MTM test-case uses native windows elements to work with and all actions (mouse clicks & key typing) are linked to them, e.g.: ... Mouse.Click(someClient, new Point(239, 90)); Mouse.Click(someClient, new Point(139, 193)); Mouse.Click(someTitleBar,...


0

If you really need to count the number of elements (or get the index of the last one)... Instead of findElement(), use findElements() to find all of the li elements. That returns a list. The size of the list tells you how many there are. If you don't really need the index, but need only to retrieve the last one, try FDM's answer.


2

Separate your actions on a webpage from test cases. Follow Page object pattern/framework. You can use junit or testNg unit testing framework to write your test cases. I would advise you to use testNg as gives you lot of flexibility. Now you like to validate all 8 steps that you want to execute, now the question is what if first step fails, what do you want ...


0

Yes, it is helpful to know or have done some of the most popular automation techniques out there to advance or get the best jobs out there. I agree with many here that manual testing can be a great under-sought skill, but those doing the hiring love automation because of the perceived (and often very real) time savings it offers. As testers, we are often at ...


2

You can download a 90-day trail of Visual Studio 2015 enterprise to test it out. The Coded UI testing framework relies on the Microsoft UI Automation framework. Any GUI tool that does not implement MS UI Automation hooks cannot be automated with Coded UI. It seems the Java SWT uses native windows controls and this should be automatable with Coded UI ...


0

There is an XPath function called Last(). So try something along the lines of: .//*[@id='name']/div/div[2]/fieldset/div[47]/ul/li[last()]/div/div[2]/div/div[2]/div[5]/span1/span1/span" Note: you might have to put the entire first section (including the li) in parentheses.


2

Personally I wouldn't go with the xpath but instead create a list of the WebElements via driver.getElements(By.tagName("li")) but if you're hellbend on using xpaths you could use a simple try catch structure to see if the current element exists and let it return the last existing path. I'd try something along the lines of static String getLastElement(){ ...


0

Application Programming Interface(API) testing is one of the important type of software testing, which is a part of integration testing, which is mainly used to determine the expectations for reliability, functionality, performance, etc. Also, APIs now serve as the primary interface to application logic. Testing RESTful Web Services is supported via the ...


0

The short answer: Every test automation tool out there has some sort of test case management capability. So there's no need to list them down here. My approach: I find it easier to list my requirements and code a solution myself instead of using a 3rd party framework. Re-inventing the wheel is generally the better solution. Yes you read me right. Each tool ...


1

If your application doesn't provide an interface for object based UI automation (such as MS UIA), which seems that's the case for you, and if you can't follow Andy's very correct suggestion; then you should look for an image processing based tool. Sikuli is the first that comes to mind, being open source and very successful (and probably being used by some ...


2

Yes. You can create an application to run your test scripts, when you create your test projects they are just libraries/dlls that you have created and they do work just like any other library/dll. add to references and you should be able to call specific tests and get their pass/fail value when they are finished.


1

Maybe your xpath is wrong. You can use add-on FirePath for Firefox to get the xpath of the image. In order to let the link be clicked, your xpath should end with tag a, not img. For example, suppose xpath of the image is ".//*[@id='navbar_notice_6']/p/a/img", you should remove "/img", then your command in java will be driver.findElement(By.xpath(".//*[@id='...


0

I did it with a Java annotation processor. You can write a Java annotation processor that runs every time you compile your project. An annotation processor can: Register which annotation types it wants the compiler to tell it about. Examine each annotation and each annotated element (class, method, ...) to learn detailed information. Write one or more ...


0

Bamboo is an Atlassian product which offshore companies use for Continuous integration as it is a paid tool. We used it in one of our project, so we will give you idea on how it could be achieved. In order to configure Maven on Bamboo(Atlassian) you need to follow the following steps: 1. Log into your Bamboo instance as an admin and then select Add-ons. 2. ...


2

If you write this same question on Google You will get a long list of tools, applications and browser addons for running a spelling and grammar check and a link test for websites. Personal what I do is copy the content of web page and paste it in a Word Processor like MS Word or Libre Office Word and run the spelling and grammar check in it for find the ...


-1

Try the below code to download a file using Selenium C# with autoit using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenQA.Selenium.Firefox; using OpenQA.Selenium; using OpenQA.Selenium.Support; using OpenQA.Selenium.Interactions; using NUnit.Framework; using OpenQA.Selenium.IE; using ...


1

To become an automation QA Engineer is a process and you are right nowadays it is really difficult to find a job only with manual skills. My suggestions is to start with grey box testing first. Watch what there is behind a web page,a single page application and mobile apps. You definitely should start with some proxy tools. To learn to manage your ...


0

Hi its better to hire a Senior Manual QA with some automation experience and also this person to want to develop his/her automation skills. Most commonly Seniors manual QA's have an automation experience. For a company which is planning to growing its QA team it is an important thing its first engineers in the company to have a strong technical and soft ...


0

Here is how I would do it. Looks like you made a trivial mistake in the xpath. Here is how the test case is defined with following test step names. Soap Request Test step named as Test Request Property Transfer Test step Second Soap Request Test step named as Test Request2 Here is how Property Transfer test step is defined. Added a property using by ...


0

Here is how I would do it. Assuming this in your test case. There is a step which invoke a soap request and gets the response. Add a Script Assertion and below is the script. And what this script does is that it will read the response, checks if it is not a soapfault and extract the required xpath value as you desired and saves it at test case level ...


0

var myElement = driver.findElements(By.tagName("div")) .Where(x => x.GetProperty("value").ToString() .Contains("Please fill out this field")) .First();*


0

Please design your codes below steps i mentioned; Leave email adress empty and click sign in button View page source and find html tag of that error. According to its element tag, first add a explicit wait for the element.For explicit wait see below link http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp After located the error message with its ...


0

For starters, I would suggest you to start reading about Page Object Model - which is a great way to introduction abstraction in your Selenium tests and provides a programmatic way to drive and interact with UI. Each page of your AUT (Application Under Test) is mapped to a class file in your code and each method within the class file can be treated as a ...


1

Form above explanation it seems that failed-testng.xml gets deleted when you re-run your tests in Post task under Jenkins, because when you run "mvn clean" it will delete the target folder where failed-testng.xml was present. To verify this you need to access the Jenkins workspace, but your software testing company might not have the access to it. Further ...


0

A Message like this will probably create a new div so, if there is really no other way to identify it, you could use something along the lines of List<WebElement> Elements = driver.findElements(By.tagName("div")); Boolean ElementExists = false; for(counter = 0, counter < Elements.size(); counter++){ if(Elements.get(counter).getText().equals("...


0

It will be difficult to maintain SeeTest automation using POM because if we declare all the paths like public static By launchpad_button = By.xpath("//*[@id='text']"); but the commands in SeeTest are like below driver.client.elementSendText("NATIVE", "xpath=//*[@id='text']", 0 ,"Testing"); So you need to add xpath again while using SeeTest commands ...


0

Today, Automated software testing is considered as one of the most trending term in the field of software testing, as it is considered as one of the efficient as well as effective software methodology, making the overall software development/testing life cycle better and taking it to some different level. To begin with Automation testing, there are few good ...


0

From the 4 quadrants of Agile testing this could be considered to be Functional Testing (Quadrant 2, top left)


0

No, in no uncertain terms, you cannot put Java code inside a Selenium IDE test case. If you want to write your test case in Java, you need to use Selenium Webdriver.


0

This would fall under the integration category because you are testing multiple components of a system working together. More info here.


0

To get access to the text of an element you use: WebElement element = driver.findElement(By.id("row0_TeamManagement_WAR_TeamManagementportlet_teamGrid")); String elementText = element.getText(); System.out.println(elementText);


3

how many test cases can we write? Every time you ask that question, the answer will be "it depends". There is no industry standard or best practice that says, "You need 9 test cases" or "You need 1.4 times as many negative tests as positive tests." If your business contract includes conditions around test cases, you should probably honor your contract. ...


5

Absolutely you need negative cases! In fact developers will likely have focused on the positive cases so the negative cases not present can add the most value! I recommend the following breakdown: Happy, positive tests. These test what happens when the user does everything right. They also used defaults as much as possible for input values Sad, negative ...


0

For testing the application positively you have only one scenario that is successful.But testing the application negatively you have number of scenarios depending on the validations on particular fields followed in your organization. we cant say how many test scenarios for negative testing.


2

You can write test cases for both positive and negative scenarios. For example; phone number starts with a 0 phone number does Not contain "+" What most people tend to do is to devise their negative tests to be a positive scenario. This way, each test that passes is in a True state. This makes it far easier to interpret the results of your runs. The ...


0

I hope this might help public void waitForPageLoad(WebDriver driver){ ExpectedCondition<Boolean> expectation = new ExpectedCondition<Boolean>() { public Boolean apply(WebDriver driver) { return ((JavascriptExecutor)driver).executeScript("return document.readyState").equals("complete"); } }; Wait<WebDriver> wait = ...


0

Use an inbound mail API service For example, PostmarkApp have a clean inbound API and a generous free tier with usage based pricing (as of June 2016). I use them explicitly for testing transactional emails on my app. Trigger the action, then verify that the email has been received by postmark. The emails are sent via a different providers, but you could ...


0

An element you interacting become stale when it is destroyed and recreated. Hence when page refreshes, every element in that page become stale. So we can check if the page is refreshed by waiting for an element in that page to become stale. The following Java code illustrate how it is achieved using Selenium webdriver. If the page is not refreshed in 30 ...


0

You can make use of window.sessionStorage. You can ask development to define an pre-defined object, for example reloadflag="true". You will check the value for true with window.sessionStorage.getItem("reloadflag") After each check you have to set the value to false with window.sessionStorage.setItem("reloadflag", "false") If you do not have possibility ...


0

If you want to start with selenium ,I would mention some points what i followed during my initial learning of Selenium. First of all start learning any of the programming language concepts (i learned Java). Using Selenium IDE start finding the elements of web pages. Then try to make small scenarios for a particular functionality. Then try coding with ...


0

A common reason for finding something in the seleniumIDE but not programmatically using webDriver is when there are multiple instances. The IDE selects the first automatically but programmaticaly you need to use [0] at the end of the element, e.g. div[0]


0

Performance Testing (or at least some concurrency testing to ensure that if 2 users will call the same endpoint exactly at the same time it will still work as expected). The tools which could be user: SoapUI Apache JMeter


1

Think about the three steps for every test setup execute teardown Ideally this is done for every test and the database strategy used between tests is truncation. Frequently this is deemed not possible and seed data is used which would slow down the tests too much if deleted each time. In those cases each test should use the database strategy of rolling ...



Top 50 recent answers are included