Tag Info

New answers tagged

0

You need to troubleshoot / evaluate below options Is your test machine having low configuration or in a different network ? If you run tests on machine which has Application installed is it faster ? Can you batch it and run tests ? instead of running it altogether ? Can you distribute the cases. Compile the the project as a jar. Deploy it in multiple ...


0

The below code should give you two weeks from the current date SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.setTime(new Date()); // Use today date c.add(Calendar.DATE, 14); // Adding 14 days which is two weeks from the current date String output = sdf.format(c.getTime()); Selecting ...


0

The interesting part of Selenium (the part that controls the browser) -- is a Javascript library that runs in the browser. The multi-language API is a set of libraries that talk to that Javascript library. Each API has the same browser control primitives. There are other libraries that might make working with Selenium more convenient, e.g. support for ...


1

So selenium was created in java, so they have all of the advantages of updates and community for questions. I personally like C# because of my background with the .NET technologies. I know that people have recommended that I switch to java because of the community base, and how quickly things are updated for their technology. So to answer your question, none ...


0

If I understand your question correctly, you want a unique username to enter for each new account. This is accomplished quite easily. I like to use Unix Time (seconds from Jan 1, 1970). Here is an example using C#: // Get Unix Time Stamp Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds; // Build email address ...


0

It seems Countries WSDL path is wrong. You can try TempConvert Wsdl as an example in W3Schools Web site: http://www.w3schools.com/webservices/tempconvert.asmx?wsdl When you load the wsdl from SoapUI tool you will see 2 operations belongs to this web service: CelciusToFahrenheit FahrenheitToCelsius


0

If you use Selenium IDE to make tests and export to C# you will find that not all commands are availible. So you dont gain any features but you might lose some in the translation process. Essentially, a thrid party plugin converts from Seleniese to whatever language. Use whatever language you feel comfortable using.


0

Yes, I am using profile. I am trying to use Chrome browser but it is not working. Is there any tutorial that I can use? What is firefox portable?


1

I like Telerik Test Studio for web applications. It doesn't require any knowledge of programming and has an intuitive interface. The test runner can be put on any of the VMs you might be using. If it is not a web application, the only thing I have worked with would be AutoIT (which can have a steep learning curve).


0

I feel like there should be better tools out there to do exactly what you want but I don't know of any.. What I would probably end up doing is to create a DB-connection from Excel to your 3 tables (Top Menu->Data->From Other Sources). This gives you access to the "migrated" data from within Excel. You can then compare column-by-column with the source ...


1

Selenium IDE has a Rollup feature: Rollup – This option allows user to combine multiple test steps to act like a single command. Try to combine the click and the screenshot into a rollup with parameters. Some links: Rollup login example with paramaters: http://sanjitmohanty.com/2012/07/06/using-the-rollup-feature-of-selenium/ How to use rollup ...


0

The following example is in Java: File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); You can combine these. First "click" and then take screnshoot.


0

One possibility: Run each thread against its own instance of the application. Depending on the cost of instances, this may be too expensive. But it does eliminate crosstalk among tests.


0

Whenever I am writing automation around "New" logins, you really have to ask yourself: "Is this new user necessary?" a lot of times in my earlier years I would create a new user each time I did a test, and realized I only needed to create a few to handle all of my testing steps. This may not be the prettiest answer, but following best practices will minimize ...


0

I have successfully used ExcelCompare from https://github.com/na-ka-na/ExcelCompare Its a command-line tool which you can give two excel files/sheets and it will compare everything and print out difference with cell/cords and the difference in text. You should be able to parse its text output in a continuous integration environment to check automatically ...


0

You have mentioned in the question automating the process of web applications which we can't done manually(Eg regression testing) we use automation Well there's nothing that can't be done manually or at least that's what I think. But regression testing can most definitely be done manually. By the way every testing is done by human - even what you ...


0

The first thing I would start with is ensuring that you aren't testing more than one type of user repeatedly. Check out "equivalence partitioning".


0

Did you run PageFactory.initElements? The PageFactory magic won't actually parse the annotations until you do so. I usually put into the constructor a line like: PageFactory.initElements(driver, this); So that it runs when I construct the page.


0

as far as i got the same Error i have done setting in Internet Explorer tools -> internet option -> security make security from high to medium-high or medium and UN-check Enablae Protection Mode second problem i found is Sendkeys Working too Slow For this problem i used IE 32 Bit Driver Hope this will solve your Problem.


0

I prefer Sikuli for quick tests of a specific functionality/defect, and then Selenium for regression/catch-all E2E tests. Some examples of my usage Selenium: The functionality of questionnaire. Checks for UI text based on ids, and then runs through all permutations of the questionnaire to check that all behavior and page redirects are as expected. Run ...


0

I hope that I am understanding your question fully, I am going to attempt to answer it the best that I can. If you give selenium a location of the element, it should be able to click it; no matter how far scrolled down the page it is. Give the location of your button to selenium and it should click it wherever it is, however many times you need it to click ...


2

The answer was buried in some MSDN documentation that was challenging to google-reach: http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/16/using-internet-explorer-11-and-not-able-to-record-a-web-performance-test-successfully.aspx Also ... don't forget to enable the test tool. Might have to check a couple places.


0

Sikuli is useful when there is no easy access to a GUI's internal or source code. Selenium or Watir identifies web elements by ID, Name, XPath etc. on the contrary Sikuli finds the elements by image/screenshot which is easier.


0

It is hard to say without seeing your code but a quick search on StackOverflow shows that people with similar error messages are having issues related to IE's Protected Mode (source) or: capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true); (source).


0

Please see if below links are of any help to you: Main providers of cloud services for mobile testing: like Perfecto Mobile, Keynote DeviceAnywhere, SOASTA, CloudMonkey and more can be found here. Moreover you can also find some examples of other mobile application testing tools. Here you can find companies providing cloud testing services or are involved ...


0

You can't interact with the native OS file browser dialog directly, but we do some magic so that if you call WebElement#sendKeys("/path/to/file") on a file upload element, it does the right thing. Make sure you don't WebElement#click() the file upload element, or the browser will probably hang. Source - Selenium WebDriver Wiki. Protractor uses ...


1

Fixed the issue by removing '/' before the 'src'


3

List cheeses = driver.findElements(By.className("cheese")); findElements() does not wait, but returns list of elements (located by locator). List is empty if nothing is found. http://docs.seleniumhq.org/docs/03_webdriver.jsp


0

For finding the application package and Activities you can use the App info application from google play store https://play.google.com/store/apps/details?id=de.migali.soft.apkinfo


0

Here is the error you are getting: java.lang.IllegalArgumentException: Not a file or directory: /src/test/java/com/project/cucumber/cucumber Notice the file path: /src/test/java/com/project/cucumber/cucumber In your project directory, you list out the directories as follows: /src/test/java/com/project/cucumber/ Therefore, there's one too many ...


2

Selenium 2 (webdriver) is designed to do exactly what you need. It allows you to simulate whatever real users can do with a browser: log to a website, click on buttons, fetch content of HTML elements, and analyze the text using any tools necessary. You can use different kinds of locators to identify HTML elements to process (ID, name, CSS class, link text ...


2

You can use Selenium Webdriver to automate this task. It can read the DOM of the HTML, and extract information from it; it controls a browser the same way you do, so anything you can do manually it can do (with a few exceptions). I would suggest looking into that rather than taking screenshots and parsing them as PDFs.


0

I would suggest just exporting a jar file for your project. All the libraries will be packaged together in the jar files(including TestNG) and you can simply double click on the jar file to start your tests. Make a runner file that calls all the tests you have to run one by one. External resources (if any), will have to be available for the jar file though. ...


1

From your question I'm assuming that you want to run your automation tests built using java one after the other using a batch file. Yes, you can run the tests using a batch file. Open a notepad and add your tests (binaries) like below and save is as YourTestFilename.bat echo off % java C:/Test/Test1 % java C:/Test/Test2 % java C:/Test/Test3 Or % java ...


1

You mention in the comments: What happens in my application is, after POSTing something, it takes sometime to update everything(indexing involved), for that specific reason we need to wait sometime and refresh the page, otherwise if I use wait for condition/wait until element is visible/wait until page contains/wait until page contains element , I cannot ...


1

I'm not sure what testing library (if any) you are using to execute the tests; I'm going to assume jUnit here, because that's what most people use for testing in Java. Similarly, I'm not sure if you're using ant or maven with this project. Using JUnit You can invoke the JUnit test runner from the command line using the following: java -cp ...


0

I do this test as little different way.I am using exception of wait.You can also use more time for wait object. public static boolean isClickable(WebElement webe) { try { WebDriverWait wait = new WebDriverWait(yourWebDriver, 5); wait.until(ExpectedConditions.elementToBeClickable(webe)); return true; } catch (Exception e) { return false; } ...


-1

First Solution : By default you cannot find the element is click able or not you must have to perform click action on that element and after clicking on the element check any unique locator after click event perform. Second Solution : check the element tag name String tagname=driver.findElement(By.id("id")).getTagName(); if it is button then check it's ...


-1

You have to check whether the element has "disabled" attribute. Read more on that here: HTML disabled Attribute Textarea disabled Property HTML disabled Attribute


0

Please view these videos : https://www.youtube.com/user/RanorexChannel/videos First you practice in different test suite's functional testing. Then learn about different testing Frame work (Data Driven Testing,Hybrid Testing, Keyword-Driven Testing ) and start testing. Visit these sites http://www.ranorex.com/support/screencasts.html ...


0

It's only difficult until you learn how to program. :) If you're already using Java and Selenium then you know how to program. You will have to learn how the code you're testing works and you will need to learn how to write unit tests. tl;dr you can do it.


2

Your screenshot function is creating a new WebDriver instance each time and then taking a screenshot of the default blank page in firefox. You could try passing in your test's WebDriver instance so you get a picture from your test: static public void screenShotOnError(WebDriver driver) { long epoch = System.currentTimeMillis(); String ssTimestamp = ...


1

This sort of thing isn't usually related to screen resolution but instead to browser zoom level. Is IE set to zoom at all? Sometimes this can accidentally occur due to accidental activation of keyboard shortcuts, so do actually check.


3

You can click text. It just (usually) doesn't DO anything. Everything that exists CAN be clicked -- you can move your pointer over it and click the mouse. Whether the application does anything with that click event is up to the logic behind the page, which Selenium can't help you with because it doesn't know how your application works. An example with ...


1

when I select the popup link it opens in a new frame on the same page. For webdriver, you have to explicitly move the driver to a new frame. If you can identify the frame, you can use driver.switchTo().frame() to find elements inside it. Does that help?


0

Maybe its one of the following issues: The element was found on the location it clicks, but the page was not done rendering yet and the element is pushed into another location before the actual click. Since older version of IE could be somewhat slower this used to happen a lot to me. Make sure you wait until the page is done rendering or add a small ...


0

<tr> <td>open</td> <td>/programscourses/currentcourses</td> <td></td> </tr> <tr> <td>waitForElementPresent</td> <td>link=CULT 454</td> <td></td> </tr> This one worked for me, thanks everyone for replies and comments.


0

Hello @rOCkINGsp007 , when ever your finding elements with tag tr , then just check whether the element is visible or not. If element is visible/displayed then add it an array and at last you can find the total number of elements were displayed in a page from array


1

Maybe the test playback does not wait long enough for the element to appear, but as you do not give a lot of info about what your are testing and how its a bit of guessing work. I would read up on how to wait for elements with Ranorex: http://www.ranorex.com/support/user-guide-20/test-automation-code-examples.html#c3197



Top 50 recent answers are included