Tag Info

New answers tagged

1

When choosing any tool you need to evaluate the options available to you. First step is to get a list of tools that are out there (google is your friend). Before I begin evaluating I tend to make a list of criteria and give each tool a mark out of 10, for example; Features – Does the tool offer the features you think you will need? Usability – How usable ...


1

I am only working with Page Objects which makes it pretty straightforward to keep them inside the page object where it is used, meaning inside a class. Actually this way you are accomplishing some things that are important for successful automation projects: DRY principle (only this one class contains and cares about your xpath) Ease of use (no ...


0

If you have knowledge of programming language like java, C# etc., you can go for Selenium Webdriver or Selenium RC. Its very nice tool which is widely used, with many functions to automate web based applications. (And its open source too). If you need tool with less programming headache, you can use Robot Framework, Which internally uses Selenium webdriver ...


0

I've used Mailosaur in the past to do the exact same thing, and plan to use this again. I'm hoping that in a few days I will have this implemented in my automation framework. There are other services as well that provide it.


0

I will go for Python because of it's simplicity. Python code looks readable and can be easily understood and even others who have very limited programming skills can also join in later phase of automation to accomplish voluminous scripting/data addition work if you have put a nice data driven framework.


3

Oh Boy! you might start another one of the Java vs Python vs Other language war. These are kind of question which are always answered with preference for a specific language in mind. For me- I would prefer Python over Java, because of one reason : Its simplicity. Our test team comprises of people who have little programming experience. However, most of ...


2

Is there any specific reason to pick Java over Python? Not really. It depends on which language you feel more comfortable with. However, most of our developers (apart from the iOS devs, obviously) are intimately familiar with Python and are using it in our production environment. So go with Python. Then Devs can also contribute to e2e Test ...


0

For unnamed iFrames I think I would use the SRC attribute, since this should be unique: driver.switchTo().frame( driver.findElement(By.XPath("//iframe[contains(@src,'<the contents of the src here')]")) ); I think the frame numbers may change each run depending on the order of loading of the browser. Not sure when it gets its internal ID, I would not ...


0

Splinter does not support find_by_class_name. Splinter has support for find_by_option_by_text and find_option_by_value but it does not look like you have the option tag in the html. Try using find_by_css instead for the list elements. This code snippet assumes your list items are visible: browser.find_by_css('.option1') If they are invisible, you will ...


0

I do not know of any framework/tool that supports this. Have a look at GNU global (http://savannah.gnu.org/projects/global/) - it provides a comprehensive tagging for C programs and command line tools to find references. May be you can build some shell/perl scripts around this to achieve what you want.


0

Google does this kind of thing. They automatically determine the dependencies in their source code and then use that information to determine what tests to run. You can read about it in How Google Tests Software. As far as I know, Google's system is proprietary. I do not know of a commercial or open-source equivalent.


1

The correct way for you to answer would be something like "I'm new to Agile, so I don't really know." If you have non-Agile experience, you could expand on your answer and talk about the number of test cycles on the projects you tested. And if you have read enough about Agile to feel confident that your reading applies to this particular context, then you ...


0

For The Agile Model Driven Development (AMDD) life cycle, it may depend upon number of factors like Number of user stories to be covered Duration of the Sprint Complexity of the PBI's Number of testers working in that sprint and their efficiency Most important - Skillset of the development and testing team. If your development team is new to project and ...


0

Which tools should I consider from JMeter and SOAPUI? (Costs are not an issue) Both Apache JMeter and SOAP UI are swell tools. Another tool to consider for automating REST API testing is Runscope. It's an API performance testing, monitoring and debugging tool that can test services from your local machine, all the way to monitoring them in production -- ...


0

and recommend any other good API test frameworks, unless retrofit already looks good. Runscope is an API testing and monitoring tool. You can build tests without coding (or you can code testing scripts if you like), and use that single test on your localdev, test against staging and even for monitoring production.


0

Currently I am working on a project using the commercial Coded UI of Microsoft. You can try the record and playback in a trail version of Visual studio enterprise. (We are not using the recording tool, but handcoding tests with the page objects pattern, personally I do not like record&playback tools, but for testing that it works it might be good.) ...


0

I've used AutoIT a lot - TestComplete is great too. Quick test Pro is excellent (and pricey) and hooks up to HP QC (as stated elsewhere) - that's a real forward-facing investment which will pay dividends in the future. I've used AutoIT to create small tools to automate UIs on legacy logging tools which didn't implement an automation interface of their own: ...


0

If you company works with the HP QC/ALM then QTP is a good tool to automate as its also from HP to work together with QC/ALM. (But it has to be licened)


1

For the free tools you can use AutoIt or Winium. And if you want to go for commercial tool then TestComplete is a good tool in that league.


0

Usually I keep them in my code specially during the implementation and before SUT is stable. Also when it is in the code, you have more control who/how can access and modify them. On the other hand, keeping them in a separate file can help in: Updating them easier Having separate XPath files for different environments and switching between them based on ...


1

With such a large system, I'm assuming that the code is built into many different individual libraries. One way you can narrow down the list of unit tests is to identify and run only those unit tests that are found in the same library as the code change. This approach also assumes local functions aren't exported to become public outside of the module that ...


0

For this first you need to create an excel, in which yo have specified first row as the column/field names like FirstName, LastName, Address and DOB etc. in the first row and values in the subsequent rows of the same sheet. Save this file (better to save as CSV as they are more lighter than Excel and will not decrease performance when you have a number of ...


0

... and recommend any other good API test frameworks Have a look at http://sqa.stackexchange.com/a/14308/13048


1

There is a tool designed for APIs testing - SoapUI, you can try it out and see how it goes. In regards to JMeter - yes, it can be used for functional testing. If your concern is about test scripts readability and maintainability you can check out Taurus - new automated tests configuration and execution engine with clear syntax and very good reporting. You ...


0

It is difficult to convince the QA manager of the usefulness of the test automation framework if the recorded scripts play back correctly; a lot of time, they don't the number of recorded scripts is low the recorded scripts do not require any custom changes the application is rather stable For the manager, the time for recording the scripts is the most ...


0

I first took the the above data in a string. then i used the regex to extract the "data":["1320649","1301971","1312053","0","0","0","0"]}] part. After this i again used the regex to extract the numbers only and so on and so forth. It was tedious but it worked good. I took regex according so that on any day if the string changes some how my code should ...


0

I haven't found ready to use solution capable of what I was looking for. So, I combined some building blocks: KVM/Libvirt transient VM + Salt automation + Robot framework testing. Altogether it allows to run multiple VMs on multiple hosts, running predefined tests. In theory, it also allows for distributed testing, with Salt Orchestrate and Robot framework ...


-1

Maybe you can use CoverAlls from CoverAlls.io


0

If I understand correctly, you're working with an n-tier system that communicates via something resembling an API. Given this assumption, I'd build a framework that allows the creation, transmission, receiving and parsing of messages to and from the application. At this point your actual test data can be in any format, and don't need to be coupled to your ...


0

A little amendment to Dhiman's answer: Don't use View Results Tree and/or View Results in Table listeners for anything but tests development or debugging as they are very resource intensive. Don't use JMeter GUI for actual load test, use GUI only for tests development and troubleshooting as again GUI thread consumes a lot of resources and can ruin your ...


0

I know your post is quite old, but there is a library for testing PDF content: https://github.com/codeborne/pdf-test Very easy to use. Just write on assert like this: PDF pdf = new PDF(new File("src/test/resources/50quickideas.pdf")); assertThat(pdf, containsText("50 Quick Ideas to Improve your User Stories"));


2

What questions should I ask the developers so that i can proceed with automating? It depends what kind of test you want to have, if it is only end2end testing then "Base URI" should be enough for you. If you need to test more than that (e.g Tests which need mocking), you may need to have access to the project code to add your test code there. For ...


0

That is one of the reasons why M.Fowler said "Write as few end-to-end tests as possible". General recommendation is to try to cover as much as possible in your lower level tests (which are faster) e.g. Unit, Integration, Component Tests. If you have no other options: Try to use headless solutions e.g. phantomJS. It may help to have less flakey tests ...


0

Artifacts is the answer. That, and a bit of restructuring of my Bamboo Stages. This being a Python project, the files required to build it are only: Makefile setup.py setup.cfg requirements.txt The source directory In the Setup job's configuration, I created a shared artifact for each of those (using tar to roll up the source dir). I removed the make ...


0

I know this post is a few years old but I wanted to bring up another option. My company bought a copy of the ruby version of The Selenium GuideBook by Dave Haeffner, who also does the Elemental Selenium Tips newsletter. The book costs about $60 but is very much worth it. I've gone through the book a few times, using the code examples and I love it. Got me ...


0

I recommend Selenium Design Patterns and Best Practices. Great book for learning Selenium and Ruby, and what is even more important for learning best test automation practices along the way.


1

You need to use the Tree listener and/or Table Listener in JMeter, Sampler result tab of Tree listener provided the value of both "Latency Time" and "Load Time" (this image has been taken from google and just for reference, Tree listeners looks exactly same) This lisnter will provide the result of individual samples, i.e. you have to select the sample ...


0

Why don't you use c# code itself ? Outlook.Application oApp = new Outlook.Application(); Outlook.NameSpace olNameSpace = oApp.GetNamespace("mapi"); Outlook.MAPIFolder oInbox = olNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox); Outlook.Items oItems = oInbox.Items; ...


0

I can not help you there but I can point out some common issues: power outages day light savings time changes leap years network outages


3

End to end testing will always have a certain amount of flakiness. If you work on a single app or website full time then you start to figure out the characteristics of it and how to deal with them. Timing issues is usually the problem for myself... But getting to know how to use the WebDriverWait class with ExpectedConditions helps dramatically since it ...


0

You should start from tesseract-ocr (former known as HP Labs OCR). I had used it for captcha for web automation long time ago. The accuracy is very high given that you have a good image quality. The image quality should no be a problem in your case if you provide good lighting on the label. Your setup would be capture the image to a local file, then use ...


0

I don't know why you want the output like this , but i can think of one way of getting you the class name instead of the whole xpath, System.out.println(heading.getAttribute("class")); which will give you result as page-title category-title Then you can prefix & postfix with you xpath string if only you want the output like that, then again as i ...


0

I'm not expirienced in COBOL so also not in testing it but here are some links I found on google. If they are useful I can't evaluate. (@All: But as this text is too long for comment I put it as an answer.) Presentation: zUnit - A journey into unit testing COBOL and PLI applications COBOLUnit Post about COBOL automating tools Presentation about silktest ...


0

I try the following things when I am getting distracted while working: I work at lunch time, usually when everyone leaves for lunch. Meetings are one more distractions. So if there is no planned meeting, I would skip them off. Listening to music or I just keep headset to make myself focus. If some tasks got delayed due to unplanned meetings/discussions - I ...


1

One question: What is your office space like? Distractions often are ubiquitous. You can only try to circumvent. Headphones is one option, changing work hours is another. Changing your expectations is a third. So what you need to do is: Find out average/acceptable performance. You may not have a problem at all. Detect production breaking habits, ...


0

I believe you can use Apache JMeter for it. JMeter can read the files with its HTTP Request Sampler (just specify file in "Protocol" input and full path to your file in Path input. JMeter can apply Assertions to conditionally mark tests as passed or failed JMeter can parse binary formats like MS Word, Excel, PDF, etc. so supported formats will be not ...


0

Select dropdown = new Select(driver.findElement(By.id("some id"))); dropdown.selectByVisibleText("Some Text");. This will access control to a dropdown but make sure that you have given enough time using Thread.sleep("3000") command. You can use ByVisibleText(), Byindex(), Byvalue() to get the desired text.


1

Considering your focus on atomic page operations, I would add some basic operations on popups, like ClosePopup, AcceptPopup, CancelPopup. Perhaps depending on the technology you should add some extra functions.


0

https://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/support/ui/Select.java here is a class designed for this in the bindigs. You are looking for the Select class: https://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/support/ui/Select.java You would need to 'find' the actual select element, ...


0

I think you should follow tracability matrix and always add new requirements/Features to same matrix so old will be there as record and also you will be able to track new. As a tool Excel is fine as start level but I would suggest to use TFS to log all old and coming requirements. It will allow you to maintain all requirements/Features history in very good ...



Top 50 recent answers are included