New answers tagged

0

I do it without a namespace, like this: //*[local-name()='RetrieveSecurityTokenResponse']/*[local-name()='RetrieveSecurityTokenResult']/*[local-name()='SecurityToken']/text()


0

I think the former, as I read that failure as asserting that the user accounts are the same failed using act1 equal to act2 which sounds ok. Unlike the failure for the latter which reads like asserting that the user accounts were different failed using act1 equal to act2 to me, which actually sounds like the inverse.


1

Unit test should be written by developers. Unit test are very close to the core code and developers have intimate knowledge of how units should work. testers are usually more removed from the deep innards of the core code and they will not be ass effective writing unit tests as core developers are. Acceptance/integration/end-to-end test do not require this ...


0

I came across Hiptest on another thread that says it supports JIRA Cloud. I have no experience of it though but the poster rated it highly. https://marketplace.atlassian.com/plugins/hiptest.jira-plugin/cloud/overview


0

We also use JIRA and are just starting to use X-Ray for test management. X-Ray introduces three new issues types: Test, Test Set and Test Execution. A Test can be manual or automated and the Give-When-Then Gherkin syntax used by Cucumber is supported. I cannot say if it is a better option than Hiptest but it is an option.


1

Using priority to drive order of execution is perfectly fine, but question is why do you want to execute test cases in certain order? As a general rule test case should be atomic and should not be dependent on another test cases. In such case do you worry about order of execution. I rather don't pay much attention to order of execution unless its an explicit ...


4

Check below are the various methods to scroll your page up & down. Scroll Down: import org.openqa.selenium.JavascriptExecutor; WebDriver driver = new FirefoxDriver(); JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("scroll(0, 250)"); //y value '250' can be altered Scroll up: JavascriptExecutor jse = (JavascriptExecutor)driver; ...


0

Disclaimer: I have been using TestingWhiz. 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. ...


2

If developers also write unit tests, then what's the point of having special testers in our team and should we replace testers with developers? Unit testing is not the only kind of automated testing. Integration tests, performance tests, scalability tests, and fault tolerance tests are all examples of automated tests that are not unit tests and that a ...


3

The TDD cycle is more a development cycle for a developer, to quote James Shore, The Art of Agile, Test-Driven Development chapter: Programmers new to TDD are often surprised at how small each increment can be. Although you might think that only beginners need to work in small steps, my experience is the reverse: the more TDD experience you have, ...


3

I'd plan it this way: The specific tests that are written 'before the code' are unit tests that are written by developers just before they write the actual code. It should only take 5-20 minutes to write a simple test. The test is written, the code is written for it and then the test is changed or the next test is written and then more unit level code is ...


0

I'd say Java is a good choice, but actually just take your pick: RPG, assembly language, C, C++, Pascal, Java, EGL, Perl, Smalltalk, COBOL, SQL, BASIC, PHP, PL/I, Python and REXX. There is also a set of CASE tools. You may want to restrict yourself to the ILE (Integrated Language Environment) compatible languages though. Also important is the OS400 ...


0

why don't you check normal http response. That will also work for a normal http page. Here is the code sample that you can use. @Test public void sampleTest(){ //test method //your code boolean abletoOpenPDF=linkResponse(driver.getCurrentUrl()); } public static boolean linkResponse(String url){ try { ...


3

Spin up your own test environment and test against that. Let's face it, a public facing web page that's designed to attract DDOS testing isn't going to be a valid test candidate. The reason for this is that you'll not know how many other users are hitting a public server or the spec of the environment. If you ran 100 simultaneous users and the site went ...


2

In my organization we are using Jira as test management tool and Selenium for UI automation.The framework used is TestNG. There is a plugin for Jira called Hiptest which can be used for creating and executing test cases. It has an additional option to work it with on automation too. Hiptest is good from my small experience. Simple to run test suites and ...


1

In your position I would look at creating a single JUnit test that loops through the csv rows and behaves accordingly based on the parameters given in each row. I assume you haven't done it like this for reportability reasons? You want to be able to get feedback on each row or something like that? It is possible to hack at the TestRunner to do something ...


2

Given that there are already YAML parsers out there for a variety of languages, I'd be very tempted to use one of those as an oracle, and then have both parse arbitrary YAML files, and compare the output.


0

I would assume that to run test cases in parallel, you need to have multiple instances of the same test - which is not possible if classes are static. In Agile development, when deciding which approach to use to solve a problem, good idea is try spike solution - in your example it would be before committing yourself to architecture, try one simple test ...


1

If you do not mind about random values, for email you can use javascript to generate valid email anytime the TestCase runs including runs in different browsers. Example (you can modify or change the script): javascript{ /*random email*/ var chars = 'abcdefghijklmnopqrstuvwxyz'; ...


1

Replace --device-name "iPhone 6 (8DB01BD3-E974-4BA6-AB40-50182BFD8800)" with --device-name "iPhone 6" In Appium GUI from in list "iPhone 6 (8DB01BD3-E974-4BA6-AB40-50182BFD8800) (8.1 Simulator)" remove all text except "iPhone 6" and try again (valid for MAC GUI).


0

To avoid running many different versions of the website, one for every commit/branch, you may need to use a lot of symlinks. We do use something similar (with Subversion). You can checkout a branch, and script changes symlinks and restarts the relevant servers, so it "just works" and change takes few seconds (not counting checkout time). Of course some ...


0

Not sure If you have installed jDK/XCODE prior to installing appium. Here are the steps that you need to follow. Install Java JDK Configure JAVA HOME export JAVA_HOME=$(/usr/libexec/java_home) Install XCODE Install android SDK Configure ANDROID HOME Install Appium Here is the step by step guide for all above steps. Appium Download &Installation.


0

From your picture, I guess that you just enter the text and still not Save, so it is not updated and you cannot get it. --> Try to save it, then open it again, I think you can get the text easily. If the text already Save, try to inspect element and search "Administrator" text to see where it is.


2

Why is everybody so obsessed with coding and automation for Quality Assurance/Analysis? Yes, use of tools does help in testing but its not what testing or QA is. There's so much to quality analysis than trying to automate everything. Not everyone has equal skills. Some people are good at coding, while others are good at thinking and coming up with good ...


2

So what you are trying to do is have a script run on different browsers and want to register a user with a unique email address. Well, Google allows you to use single email address for such testing purposes with incremental characters appended to your ID. How this works is, You have a Gmail account say example@gmail.com. You can use this same account for ...


0

My product use AngularJS and Select2 jquery for the dropdown and it appears same as your case, hope my exeperience can help you There are 2 ways to do Execute JS to enable the dropdown, then select item as normal driver.ExecuteScript($('elementLocator').attr('Style','display:block')) Click on div first to enable something (as @scorpion mentioned) , ...


0

Instead of automating after the code is done, try to automate during development together with the developers. This way you can solve any issues you run into together. Make it part of the definition of done of a feature. So instead of planning ahead, try to fix issues as you run into them and get a common understanding what is expected from each other. Else ...


0

I feel your pain - I have to deal with the same problem. Protractor (as suggested by Tam Minh) is one way to do that, but for the price: you have to write tests in JavaScript, which is for many (including me) too steep price to pay, because rest of our development and testing is in Python. We use locating elements by other methods: name, class, tag, text, ...


3

Agreeing on good element and attribute identifiers is essential with web applications. Identifying elements is done by developers, designers and automation programmers. In a traditional waterfall environment with most of the requirements and specifications placed up front you can agree that, for example all elements that will be used, checked, clicked on ...


2

My recommendation is that you store the state of what has been used within a test. So the test would initially create a new user with a unique email. You can use some random character generation or a database sequence to make each one unique. Personally I recommend using sequences as they are more deterministic than random characters and less likely to ...


-1

Instead using Selenium, you can write it by C#, Java or another language. Below is the link for C#. C# sample


0

AngularJS will generate some HTML, you should take a look on Protractor instead asking for "no dynamic ids"


0

Here is my example of ComponentChooser usage: JButtonOperator flsButton = new JButtonOperator(mainFrame, new ComponentChooser() { public boolean checkComponent(Component comp) { if (comp == null) return false; else if (!(comp instanceof JButton)) return ...


3

Yes absolutely right. Because all those bookmarks, addons, passwords etc.. are saved In your regular browser's profile folder so when you launch browser manually, It will use existing profile settings & It will show you all those stuffs. But when you run your software web application's tests In selenium webdriver, It Is opening new browser ...


0

Use following code: WebElement firstName = driver.findElement(By.xpath("//input[@name='firstName']")); String value = firstName.getText(); System.out.println(value);


0

Basically the problem seems like, the attribute "value" is not updating automatically, so after entering the text into textbox click somewhere else on the page and then use the method getAttribute("value") hope it will works......


0

Cucumber is not really driven by JUnit. JUnit Runner is an easy way to integrate running cucumber into an existing testing infrastructure (like mvn verify). That one single empty JUnit Runner class should not give you much pain against TestNG. The only thing important for you is to plug it into a proper build lifecycle phase, we often use it on ...


0

It would help to check for other javascript attributes if getText is not working. How about if you try: el.getAttribute("innerHTML"); If that does not work, double check the element you are getting the text from. Are there any children elements for the input element?


0

When are you trying to get a value? before entering or after entering it in the text field? WebElement fName=driver.findElement(By.name("firstName")); fName.sendKeys("Admin"); System.out.println(fName.getText()); Above code should return text entered.


0

Normally performance testing of mobile application is not required as mobile applications have only one user and if you're happy with application load time, responsiveness, rendering times, etc. - you should be good to go. If your application is being updated frequently and it is relatively big and complex you might want to automate the steps and set some ...


2

The reason behind the exception you have mentioned is because with your test script you are trying to locate an element that doesn't exist in the webpage you are trying to test. how will you resolve It? Well, along with the text you have provided, the console would also have given the line number in the test script where this exception occurred. I ...


0

I'd say go for ISTQB certification and buy books for subjects like Ruby, Jenkins and mobile testing. ...But only after you checked what is asked for most frequently in job openings that you would like. That is the most effective stuff to pursue. This will vary over time and per location. Also different companies have different needs. Finally, mobile ...


0

I know about several open source tools hosted on GitHub but didn't try them yet. Just created a list for future learning. Any additions and comments are welcome. TestFX - 213* Automation (Groovy & Java) - 48* swinger (JRuby, Cucumber-based) - 47* Marathon - 31* Window Tester - 5* This list might be updated in the future. I'm maintaining it at the ...


3

You will get this exception when WebDriver Is not able to locate element on the page of software web application using whatever locator you have used In your test. To resolved this Issue, I will check bellow given things. First of all I will check that I have placed Implicit wait code In my test or not. If you have not placed Implicit timeout In your test ...


0

I feel your question is a bit contradictory/too broad of a scope. You will first need to decide what exactly you want to test.. Manual testing is usually only good for functional testing (seeing if it works the way it should). If you want to do performance testing there are multiple tooling options to consider: do you want to test the app itself (GUI) on ...


0

You can try to turn on the screen rotation and rotate the screen and instantly click on some functionalities and check if they behave they way it is expected or not.In my workplace we had issue that when the screen is rotated the functionalities wouldn't work or would take time to respond. To test it on different network, you can configure the router to ...


1

Performance testing doesn't only mean many users hitting the same thing at the same time. There are various aspects of performance testing which you can opt to do manually. As you said you have to test a mobile application, you can test, Whether it works in the same seamless manner on a phone with low hardware, OS and memory configurations as it does on ...


0

This will show you how to run two devices on the same script and give them different inputs. However that will run serial. You may be able to get them to run parallel if you call each action twice specifying the a device each time. So @@app1.performaction() and @@app2.performaction() but I'm not sure about that. The code for perform action ...


0

In a webpage, there is a "Top" window, which can be considered as a default frame (not conceptually) and there can be zero or more iframes. While executing the automation test script, the driver always points to the default frame which is "Top". If you want the driver to find the element which is inside an iframe, you need to first locate the iframe and ...


0

In your BasePage.Java instead of creating a separate WebDriver object, you can use the WebDriver object of BasePage class directly by using (BasePage.driver) as below: public class LoginTC extends BasePage{ @Test public void login() { LoginPageObjects loginPage = PageFactory.initElements(BasePage.driver, LoginPageObjects.class); ...



Top 50 recent answers are included