Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Automated UI Testing?

Automated UI Testing?

Scheduled Pinned Locked Moved The Lounge
javascriptwcfdesigntestingbusiness
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tim Groven
    wrote on last edited by
    #1

    We have a third party web app that the business uses, and we support. We have many hooks into, and a lot of web services built around it to get data in and out. The hardest thing we have is regression testing the third party app. Does anyone know of any good tools to automate the UI testing of this application? We have tried Selenium WebDriver, but due to the way the application is built, it doesn't work. It has a lot of javascript injection of items into its pages. Thanks!

    K L B D 4 Replies Last reply
    0
    • T Tim Groven

      We have a third party web app that the business uses, and we support. We have many hooks into, and a lot of web services built around it to get data in and out. The hardest thing we have is regression testing the third party app. Does anyone know of any good tools to automate the UI testing of this application? We have tried Selenium WebDriver, but due to the way the application is built, it doesn't work. It has a lot of javascript injection of items into its pages. Thanks!

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      Not tried using it yet, but we've started using a framework called Coypu. There a few frameworks out there: Selenium, WatiN, couldn't tell you the merits of them.

      PB 369,783 wrote:

      I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

      1 Reply Last reply
      0
      • T Tim Groven

        We have a third party web app that the business uses, and we support. We have many hooks into, and a lot of web services built around it to get data in and out. The hardest thing we have is regression testing the third party app. Does anyone know of any good tools to automate the UI testing of this application? We have tried Selenium WebDriver, but due to the way the application is built, it doesn't work. It has a lot of javascript injection of items into its pages. Thanks!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        AutoHotKey[^] - anything that lets you write macros.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        1 Reply Last reply
        0
        • T Tim Groven

          We have a third party web app that the business uses, and we support. We have many hooks into, and a lot of web services built around it to get data in and out. The hardest thing we have is regression testing the third party app. Does anyone know of any good tools to automate the UI testing of this application? We have tried Selenium WebDriver, but due to the way the application is built, it doesn't work. It has a lot of javascript injection of items into its pages. Thanks!

          B Offline
          B Offline
          BobJanova
          wrote on last edited by
          #4

          It is possible to use Selenium on pages that do dynamic content loading. It requires a lot of waiting for elements with known IDs or consistent XPaths to be present before proceeding to the next step. At my company we've developed a wrapper toolkit around Selenium (it can use other drivers, too, but I've only experience with the Selenium part) which allows us to write automated tests against that type of site more easily. Unfortunately I can't give you it but I recommend you do something similar, I don't think there are any automated web testing kits that make it straightforward. Testing this kind of site will always be slow and unreliable, as with any UI testing and particularly network-dependent testing. But it can be automated with Selenium.

          T 1 Reply Last reply
          0
          • T Tim Groven

            We have a third party web app that the business uses, and we support. We have many hooks into, and a lot of web services built around it to get data in and out. The hardest thing we have is regression testing the third party app. Does anyone know of any good tools to automate the UI testing of this application? We have tried Selenium WebDriver, but due to the way the application is built, it doesn't work. It has a lot of javascript injection of items into its pages. Thanks!

            D Offline
            D Offline
            Deflinek
            wrote on last edited by
            #5

            Take a look at http://www.sikuli.org/[^]. It may help you automate things better if selenium is not an option.

            -- "My software never has bugs. It just develops random features."

            1 Reply Last reply
            0
            • B BobJanova

              It is possible to use Selenium on pages that do dynamic content loading. It requires a lot of waiting for elements with known IDs or consistent XPaths to be present before proceeding to the next step. At my company we've developed a wrapper toolkit around Selenium (it can use other drivers, too, but I've only experience with the Selenium part) which allows us to write automated tests against that type of site more easily. Unfortunately I can't give you it but I recommend you do something similar, I don't think there are any automated web testing kits that make it straightforward. Testing this kind of site will always be slow and unreliable, as with any UI testing and particularly network-dependent testing. But it can be automated with Selenium.

              T Offline
              T Offline
              Tim Groven
              wrote on last edited by
              #6

              That's what I was trying (I believe). I had it load the login page, and was able to get it to fill out the user id/password, and submit. I then used the F12 tool in Internet Explorer to find the ids of objects that would load after login, and I put in a wait for those, but it always fails. Maybe I'm not waiting long enough like you said. I'll increase the timeout and see what happens.

              A 1 Reply Last reply
              0
              • T Tim Groven

                That's what I was trying (I believe). I had it load the login page, and was able to get it to fill out the user id/password, and submit. I then used the F12 tool in Internet Explorer to find the ids of objects that would load after login, and I put in a wait for those, but it always fails. Maybe I'm not waiting long enough like you said. I'll increase the timeout and see what happens.

                A Offline
                A Offline
                Andy Brummer
                wrote on last edited by
                #7

                In some cases, I've had to skip the built in wait and use the execute javascript on the page in a loop in order to find elements and execute handlers that weren't triggered on a selenium click for some reason. Also, I've found a series of short waits in a loop to be more reliable than one longer wait.

                Curvature of the Mind now with 3D

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups