Tag Info

New answers tagged

0

I like to use a combination of techniques, the first involving a 'dependableClick()' which I have modified slightly starting with some code I found here on SE: public void dependableClick(By by) throws InterruptedException { final int MAXIMUM_WAIT_TIME = 10; final int MAX_STALE_ELEMENT_RETRIES = 5; WebDriverWait wait = new ...


1

Following are the things you could start of with : Choose the language in which you will implement your Selenium scripts from among Java, Python, Ruby, Perl, PHP, Javascript, etc. Learn one if you don't know. You don't need to be a real master to get started but the more you know the easier it will get to perform advanced operations in your scripts. Refer ...


0

A few ways I would attempt this. VIA Javascript injection within the Chrome/Firefox console Using POSTMan to build the request Using SoapUI to build the request Disabling JavaScript in the browser Using outdated browsers which the functions might be incompatible with There is several other methods, if you want to automate your best options would be by ...


0

To complete, if your UI is connected to your backend throw webservices I recommend you to use SoapUI. It is very easy to use and you can quickly automatize your tests: - Parse the webservice URL to SoapUI --> It will display the list of methods (commands) visible - Click on one of the methods you want to test --> SoapUI will display the XML used empty - ...


0

The way we test server-side validation is to disable the client-side validation through javascript. Not sure which testing framework you are using but the following example works in Selenium. var javaScriptExecutor = (IJavaScriptExecutor)driver; javaScriptExecutor .ExecuteScript("$('form').attr('novalidate', 'novalidate');");


0

Hexawise is one of several tools that could help you: Identify all the potential configurations for a given system Identify a prioritized set of permutations that maximize coverage (based on user-specified coverage objectives). As dzieciou mentioned, and provided links to above, multiple tools can do this. Disclaimer, I am the CEO of Hexawise. Having ...


0

Free online resources could be found on http://www.testingeducation.org/BBST/ Start with foundations and do all the readings.


0

If this is for Java then why not use this project? https://code.google.com/p/fighting-layout-bugs/


0

Do two simple steps: First initialise webdriver element then try to find element using xpath, as explained below WebDriver driver=new FirefoxDriver(); driver.find element(By.xpath("enter your xpath")).click();


1

Ok, this isn't a bug. The XPath, when searching in the context of an element, must start with a dot. So this works: htmlControl = htmlDiv.FindElement(By.XPath(".//label[text()='Naam']/following-sibling::div[1]//select"));


0

According to Selenium best practices, XPath is locator of last preference. Preferred selector order : id > name > css > xpath Ask your web designers to add IDs or names to elements you need to interact with. Take them to the lunch and talk how IDs make your life easier. Bribe them is you have to.


0

A great place to read through testing theory is the Software Testing Club and the Ministry of Testing. I read their content all the time and it always answers a question or gets me to think differently about certain testing scenarios. http://www.softwaretestingclub.com/


0

As the very first step I would recommend exploring basic functionality of the tools. Luckily both Selenium and JMeter provide record-and-replay functionality so to start: Selenium IDE - Firefox Plugin which is able to record test flaw and generate relevant code. Preferred language is Java as both tools are Java-based and you'll be able to integrate it into ...


1

GetVisibleText should give you the text from the insight object Window("Microsoft Word").InsightObject("InsightObject_Example").GetVisibleText


3

I am in no way trying to be rude, but I think the hiring team may be setting themselves up for failure. Having worked on many many automation projects and worked with many people of varying skill levels, it is actually just about impossible for someone with no automation background to jump in to automation and get it right the first time. With no guidance ...


1

The right way to go about it would be to prepare not just for the interview but for the job itself. Do you have hands on experience in programming? Try learning java. Both, selenium and jmeter work on java. So learn the concepts. Once you learn java, google tutorials for selenium and java. Learn from them. Ask help from the testing community for one on one ...


-1

I believe this link will be helpful for you. Date Picker Thanks


0

I'm using (when it is needs) mix of [FindsBy] and "complex" elements (defined as such "dummy example") protected string someVariable= "someXPath_part"; someVariable + "[" + number.ToString() + "]" As beekeeper said, driver.FindElement(By.Locator()) and locator, defined by [FindsBy] are equial, so if you need to check existing/enabling of element, just use ...


1

The short answer is that an equilateral triangle is also an isosceles triangle. Because you have the least restrictive check first, that check will identify all your equilateral triangles as isosceles triangles. This is a pretty good example of why it's not a good idea to combine multiple checks into a single code routine: you aren't necessarily checking ...


0

A good online (and free) class is Udacity's Software Testing course. It covers a lot of theory.


3

Yes, you can run headless with either Headless Chromium or with PhantomJS .. Keep in mind that running with Selenium Grid or SauceLabs is equally as good as running headless.


0

Why didn't you code your locator like this? driver.findElement(By.xpath(".//a/i[@class='icon-edit']")).click(); Seems like it would have still worked and would have been simpler.


1

Sometimes it so happens that the wait commands do not work. Instead of the wait command of selenium try using Thread.sleep(); command of java. This command will pause execution of the script for the given time...


2

Becoming a software testing expert by James Bach Testing computer software by Cem Kaner, Jack Falk & Hung Quoc Nguyen Lateral thinking by Edward de Bono Lessons learned in software testing by James Bach Perfect software and other illusions of software testing by Jerry Weinberg


1

Practitioners Guide to S/W test design by Lee Copeland Systematic S/W Testing by Rick Craig These got me started off learning techniques Then start reading stuff by Cem Kaner, James Bach, Jerry Weinberg....


0

Talking about JUnit report, both XML and HTML reports can be added by editing Apache Ant build.xml file: Test running target: <target name="tests" depends= "compile"> <junit printsummary="yes" haltonfailure="no" showoutput="true"> <classpath refid="junit.classpath"/> <formatter type="plain"/> <formatter ...


1

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() Useful Links Java Doc Getting started


3

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. PageObjects are classes that contains WebElements and every actions associated with those. A PageObject looks like this: class HomePage { WebDriver driver; ...


0

This should work: WebElement element = driver.findElement(By.xpath("//button[@class='btn' and contains(@onclick,'PopulateInvestor')]")); element.click(); The driver search for the element on this way element has attribute class and the value of this is btn element has attribute onclick and the value of this contains the string PopulateInvestor Maybe ...


1

PackT Publishing also sell a SoapUi book that is quite in-depth. Mark.


2

@Imen: I know below mentioned reporting techniques. And more important is how you want your reports (Line by line/step by step execution report, class/method level report, etc..?). What's the best appropriate method used by Selenium Testers to generate tests reports? Selenium will support multiple reports generation techniques. Testers will be using ...


-1

And here are a couple of others: Cucumber Robot Framework


5

As for tutorials on SoapUI, sadly the majority of them are sub-par at best and out of date. If you want to learn SoapUI the best option is likely to jump in feet first and hit the ground running. My background is primarily API testing, with a specialty with SoapUI and Groovy, so I will try and give some hints and pointers to get you started. SoapUI's core ...


1

Here are some tools for you ; Selenium - http://docs.seleniumhq.org/ Watir - http://watir.com/ DejaVu - https://www.npmjs.org/package/dejavu


1

Few more notes on top of Neils Answer Test Environment Setup using Cloud Infrastructure Load generation in cloud for on premises application Load generator on premises, application on cloud Both load generator and application both on cloud Load Testing Flood IO - https://flood.io/ LoadFocus - https://loadfocus.com/ Security Testing NTOSpider - ...


-1

The options to precisely set desired throughput are in: Ultimate Thread Group (available via JMeter Plugins) provides easy visual way of defining virtual users ramp-up, ramp-down and time to hold the load. 3 users per hour will look like Constant Throughput Timer allows to set target load in "requests per minute" so if you want 3 requests per second ...


1

As far as I know jmeter doesn't work in a sequential order. What jmeter does is, it takes all the requests and send them to the server/host all at the same time. So if you have configured it for 3 users making 1 http(s) request, that is 3*1 http(s) requests will be sent to the server/host all simultaneously and then it will wait for the response!


1

I don't see how testing in the cloud is different then testing on your local computer system. The only thing the CLOUD delivers is a scalable type of infrastructure. If you need to test the scalability of the infrastructure, then search for "Scalability testing" and read blogs like this. Load testing mobile API's could be done with tools like BlazeMeter. I ...


1

Selenium/Webdriver is a great tool, but it comes with some overhead you'll have to be prepared to manage. The first is choosing which Programming Language bindings you intend to use. Whatever that ends up being will be the standard for the project for a long time, and depending upon the level of person you hope to use to build it, it can impact your ...


1

Selenium is a tool to drive and verify behavior of web-applications, it should not matter where they are hosted. If you can reach the webserver running the application it can be local or hosted in the cloud, the application should behave the same. If you want to test if the cloud setup can handle a certain load and find its bottlenecks I would look at a ...


2

Although i do not have much idea about it but i think you can give selenium grid a try. I read on seleniumhq.org that with selenium grid you can create a master slave architecture, where one master machine will control several slaves to send request to a common server. Maybe this can help solve your issue!


1

I would suggest the following approach Decide on the features that are generally available on all e commerce websites (Like a e cart). Decide a few functionalities that will be common across all e commerce websites.(Add and Delete from the cart). Define how will your application recognise how to perform those specific functions on the website - Deploy ...


1

The Keys points to consider while choosing an automation approach (Data Driven/Keyword based /Hybrid/) are as follows - Is the Application under Test - Data intensive ? - Better of with Data Driven approach then. Is the application more about functional tests (e.g. workflows) - Better to go with a keyword approach - specially if those functional tests ...


1

I can see several problems in your code. Paramaterized @BeforeSuite method with no data provider. Your @BeforeSuite method (main()) takes a parameter (args), but you have not told TestNG how to provide a value for that. That's what that exception message means. Calling test methods. When you run under TestNG, your @BeforeSuite method calls your test ...


1

Gestures - User can perform multiple clicks on submit button / search button occasionally which could result in page reloads / transactions cancelled Image / Video Previews - Between transitioning between thumbnail and playback of videos I have observed not well automated Payment gateway timeouts - During peak transactions there could be timeouts with ...


2

As I know captcha (Some captcha you can test) you can not test using selenium webdriver.


0

A solution I found so far it to turn off formatting for certain sections, so that IDE does not destroy that. In Intellij Surround the code fragment with // @formatter:off ... // @formatter:on Preferences -> Code Style -> General -> Formatter Control -> Enable formatter markers in comments This does not auto-format RestAssured section, but at least ...


2

Tests that explore the GUI of an application need to simulate the keyboard and mouse to send commands. They also need to read the screen to validate that the correct things are displayed. To me the mechanisms for keyboard and mouse entry and for screen reading are more important than the programming language. However as your application is in C# writing the ...


0

To add a project, you just have to run an analysis on it. See the docs here: Analysing with SonarQube Runner.



Top 50 recent answers are included