New answers tagged

0

I am not so well versed in Jmeter, but I once studied it for few months. Here are some of the good links I can recommend for interpreting Jmeter results. Link 1 - check Andrew Monkhouse's answer. He has explained it very precisely. Link 2 - A good explanation is given here. Link 3 - TechTarget always have some of the best explanations. This is another one ...


0

This is actually a relatively simple programming exercise: what differs/matters here is how you implement it. The HAR specifications (linked to from your link) state that the response object will have a key-value pair of "status": [HTTP Status Code (200, 404, 500 etc.)] Their example is "status":200 The response object is a member of each object in the ...


0

You are using findElement method which will return single element but you are try to save it in the list. Your code should be WebElement a=driver.findElement(By.className("android.widget.EditText"));


1

Selenium cannot perform any operation apart from web elements, pdf can be tested with the help of java Apache API for pdf Go through this link https://pdfbox.apache.org/docs/1.8.10/javadocs/ to explore more about PDFbox API


0

Just extract the class attribute of the element and create the xpath String headingClass = heading.getAttribute("class"); String headingPath = "//div[@class='"+ headingClass + "']" then use headingPath wherever you want.


-1

For Windows I recommend AutoIt You can either record interaction with UI elements or directly write automation scripts with their Basic-like scripting language.


0

You mentioned black box testing and given that I would consider a different language / framework for the testing. For example I recently was writing a bunch of bash programs and wrote my own test runner in bash. Basically, to get started you run the program / module and then you examine the results in comparison to what you expect. So the test runner ...


0

If you mean for getting a job, Well, many companies and hiring managers prefer hiring a certified person, be it for development or for testing. For many it is kind of a proof that you are qualified enough. Many others like to show off to their clientele that they have so many certified staff that will be employed to work on their project. Some don't really ...


1

Bootstrap a clean environment for each test to test in isolation. This might look like a lot of overhead, but is very needed if you want to parallel run your tests and not get flickering and possible untrusted tests. Personally I create a session GUID and then generate test data and store in it in a database with the GUID. Boot an environment and let it ...


1

You can download the said PDF using Selenium webdriver, however I don't think you can verify the contents of the PDF, because that is not possible as far as I know using Selenium webdriver alone. You can use Apache PDFBox to verify PDF contents- however it is a JAVA library. I am not sure whether you can combine PDFBox, along with Selenium and automate the ...


4

Project Management Institute is one of the most well-known. More at https://www.pmi.org/certification/agile-management-acp.aspx Another leader is: https://www.scrumalliance.org/certifications which breaks out various roles including developer A personal note is that in my experience this certifications will make you entry-level and only a year or two in ...


0

I'd like to also add to what Peter said above. Automating UI interaction, in this case using Selenium, can eat up quite a bit of time maintaining tests. If your team really wants to invest in automation, first you need an agreement that development will have a focus on making their product testable and expose elements in a manner that is easy to automate ...


1

Selenium/WebDriver will do just fine. WebDriver is W3C standard for browser automation. Automation of testing is on a spectrum, from almost fully manual to 100% automated. Test automation is manual testing aided with some automation. Preferably close to 100% but you will start with less than 100% :-) Automated tests are full suites of tests run ...


-1

You can do: browser.get('file:///path/to/my/html/file/testing.html') Edit. You are trying to open a html fake page ( I assume for get the HAR content ), also trying to mock the request (you can do it, but it's more difficult than that), when you can get the same result loading the html file from selenium.


1

If a font-family is set on the body tag in your stylesheet, then that font will apply to nearly every element throughout your site (form and table elements being the exception where you have to redeclare the font-family for those). The only time the font-family declared on the body won't apply is if it's overridden by a different font-family applied on ...


3

In order to test something, you need to install it somewhere, i.e. in a runtime environment. In the process of running your test, you may change the runtime environment in ways that you need to clean up before you run your next test. There are two ways to clean up: you can undo the changes, or you can throw the environment away and create a new one from ...


0

I had faced a similar issue. Scrolling was enabled on the modal window, so I scrolled down and then tried to access the element. It worked for me.


-1

ok but, i was talking about using page factory, and methods from page classes which i later use in main class - test class


2

As I understood the question, it is required to define the reusable methods and use those methods in different test cases based on the requirement. Here I am writing the code for two individual methods to work with,... public void inputKeys(WebElement we,String ip){ we.sendKeys(ip); } The above code just type the string value referred by ip variable. ...


0

Just replace the findElement () method with findElement**s**(plural). Since the findElement method always returns a WebElement instead of a List of WebElements. The findElements method will return the list of webelements, which can be referred by a variable of type List<Webelement>. So the line of code will looks like,.. `List<WebElement> ...


2

The getText() method returns all the text within a HTML element. In this case all the text between the start <a> and the end </a>. This includes other tags and their contents. Try to split the string on white spaces and use the first word found. String value = getText(); String[] words = value.split("\\s+"); String result = words[0]; Now ...


-1

you should use Java String Substring and not string trim,trim removes only trailing and leading spaces


1

The main principles to guide you here are: Each test should be independent. It should perform its own setup and teardown and after running leave the system in the same (initial) state. This will help avoid issues such as "But if I run one test script at a time, I get the result I want" The only exception to this is system-wide seed data needed for ...


1

Certifications don't teach testing. Still if you want to go for one, well, there are several available out there. But, they don't teach you how to test, they mostly teach only a certain terminologies. Yes, learning a programming language is an added advantage for a tester, especially for someone who is looking to make a career in automation testing or ...


1

The question and the description that you have written for it are misleading. I'm assuming you want to know which certifications will help you get a start for your career in Software Testing. Well for that I don't think you need to go for any certifications. Read good blogs and article on testing. There are thousands of them available on the internet. ...


10

I don't know whether a certification is necessary for automation testing, but you definitely require good coding skills and logic development skills for it. Its advantageous to learn Java as its open source and hence there are countless forums and communities to seek kelp. Plus many of the automation testing tools (specially open source testing tools) use ...


1

Everything enclosed within the <a> </a> tags is considered as part of the link text. So if you use the getText() method of Selenium, you will get the whole text. If you want a part of the text, you should try to shed the unwanted text. Get the text and store it in a String variable. Trim the unwanted text from that string and you will have ...


2

Is there a load testing of a mobile app? Short answer: Yes there is. Long answer: Well you can test the performance of your app on the device. You can test, how much memmory it occupies? How much battery does it utilize? What happens if you have several other apps open and then open your app? Does it hang up the phone? How much time does it take to ...


0

We are workng with the ranorex and eggplant, they are really good solutions http://www.ranorex.com/ http://www.testplant.com/eggplant/testing-tools/


1

You should have 2 test cases because they have difference steps and difference expected result. Run the test case one by one. If you want the test to fail, change the expected value to anything else. It sounds like you are not using testing framework. If you are using xUnit, it will help you to manage test fixture, assertions, ...


1

Python is widely considered as best language for beginner programmers. Java puts more focus on generating fast code (which adds requirements on programmer). Python is substantially more forgiving, and for website testing, speed is not the first requirement (flexibility is, where Python shines). Also, if you want to be programmer, you need to improve your ...


1

Actually java or other languages could be good option to drive Selenium tests, but it is not a must. You can command WebDriver from many different languages. Ruby, java, C#, VBA, VBS, javascript. Thanx to WebDriver you will have possibility to run your tests in multiple browsers (Chrome, Firefox, IE, Safari...). But all the languages are just a plus. If ...


1

I would recommend using Apache JMeter for this, it comes with Proxy server so you will be able to record your test scenario and replay it with increased number of virtual users You can also use Mobile Recorder service which is the simpler way of capturing mobile device traffic and converting it into a JMeter test.


0

There are several ways to get involved with software testing: On way is to get formal qualification like a ISTQB certificate Another way is to just start testing on sites like https://test.io/ to gain experience in testing products and writing bug reports When You apply for a job in a software company it is always a good thing to know the very basics ...


0

5000 users using the App simultaneously is mostly load testing for the server. But why do you care about names and definitions? Just think about what do you want to test your App for. "Load" can be as simple as a monkey-user hitting buttons, or it could be heavy computations done on a loaded CPU, or trying to transfer a large amount of data over a poor ...


2

We have a bunch of selenium test cases and could observe a similar behavior. We dug into the issues and figured out two things: Make test cases "orthogonal" Test cases should not depend on each other. But that also means that every test case is responsible for creating the correct precondition for itself to run. Don't make any assumptions about the ...


1

Uses cases which must be automated for a website are - Use cases which require the user to manually insert a lot of data on forms. Edge cases or cases with critical functionality Testing on different software/hardware platforms Simulate large number of users Repetitive steps Calculations Data is conditionally displayed on page based on any ...


3

Anything for which you can write a logic piece of code can be automated. I think usually the things that are very repetitive task that are very cumbersome to do day in and day out can be automated. Unit level checks can be automated so that the developers can perform their validation checks. Usually security & performance related tasks are automated. ...


0

To run a UFT test from ALM the ALM project need to have the "ALM Lab Extention..." enabled. You also need to have operational testing host with the purpose Quick Test Professional and a user with a profile the correct permission. Otherwise you can connect UFT with ALM and run the test from UFT.


3

That's to some degree up to your management team. Who does what testing differs from place to place, and what different phases of test are called can differ as well. However, it's very, very important that everyone understand what the expectations are for the different development phases. Otherwise, you're either going to be duplicating effort or missing ...


3

In my experience, as you correctly mentioned, if creation fails, deletion cannot be even tested, so in fact you have just one test with 2 separate test conditions. So far for every separate scenario I have only one test with multiple test conditions. Test starts with preparing system to certain status, which will be irrelevant for other tests. Then all ...


0

have_content actually takes a regexp as parameter. You can use the i flag to make the search case insensitive expect(page).to have_content(/my case insensitive search/i)


1

PDFs and ePubs are shown in the browser with plugins. Selenium cannot access these documents. If you use Windows you could have a try with AutoIt. On Linux and Macs I think you have to fallback to something like Sikuli after the document is opened. Some reads: AutoIt and PDFs: http://autoitsourcecode.blogspot.nl/2013/05/pdf-automation-using-autoit.html ...


2

Automation testing is never meant to be with 100% coverage. Even during development, it takes a lot of effort to keep automated scripts up to date. For this purpose is good to make agreement with development, that unique ID's will be added to each significant object. It is hard to give some advice to your project as we do not know anything about it. But if ...


4

Like Michael said the Page object pattern makes the finder easier to use. I try to maintain a pattern of having a test only verifying one thing or possibly one screen. In your example I would assume in your first test, you would be testing everything about the post being visible. In your 2nd test, the create a post step is only a setup step so that you have ...


4

I use the page object pattern myself. It addresses two main things: Defines the finder in one place Names the finder with english-like words Good things. However this doesn't address the issue of how to combine series of steps that are then used in multiple places. To do this you can use use functions / procedures / methods in the language you are ...


5

On our Group we have both a combination of applications that are UI driven and others that are just public facing API Interfaces. In both cases the development team is usually doing unit testing and a single a happy path integration test. The QA Team (of which I am part of) we generate automated test scripts that are repeatable and verify all of the business ...


2

The trade-off is between script length and diagnostic value: Script length: one script with everything in it may be shorter (and should never be longer) than a positive script plus a negative script, because multiple scripts will duplicate setup steps. Because it has fewer steps, the everything script will probably be faster to execute than multiple ...


4

In my opinion you should not mix positive and negative paths because every test has to be independent and give a clear result. Suppose that you create 100 scripts both positive and negative and all tests with negative paths fail, in theory you'll never know if they would fail even with positive ones until you fix your code. My suggestion is having a ...


4

Is it only GUI testing? No, it's up to you. Personally, I create automation tests for the test cases that are often executed, and the test that is simple (not complex). Do we also have to create Integration automation scripts? Yes, we do. It is part of testing and hence the testers' job. What would be our boundaries when a developer also does their own ...



Top 50 recent answers are included