Unable to navigate to a new page on the click of a button

Ask general questions here.
Samy
Posts: 4
Joined: Mon Feb 01, 2016 6:17 am

Unable to navigate to a new page on the click of a button

Post by Samy » Mon Feb 01, 2016 7:18 am

Hi

I am pretty new to Ranorex as well as to the field of testing. :D
Unable to find a way to navigate to a new page (web document) on the click of a button.Any help will be appreciated.

Thanks
Samy

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Unable to navigate to a new page on the click of a button

Post by krstcs » Mon Feb 01, 2016 3:09 pm

Welcome!

Without more information it's going to be very difficult to help you. Please include the following (where applicable) when posting a question on the forums:

1. What version of Ranorex are you using?
2. What version of Windows are you using?
3. What technology is your system under test (SUT)? You indicated a web page, but is it pure HTML/JavaScript or Flash or Java, etc?
4. What is the goal of this particular part of your test? You indicate clicking a button to get to a new page, but is there something else that you expect in addition or instead of what you are seeing?
5. Please post a Ranorex Snapshot (not a screen shot) of the button in question, or a link to a test version of the webpage, if possible. See this page for information on how to create a Ranorex Snapshot: http://www.ranorex.com/support/user-gui ... files.html
6. Please post the RanoreXPath you are using for the button in question.
7. Please post the code that you are using (or the recording modules: *.rxrec & *.rxrec.cs files) to click the button.


A few suggestions:
1. Make your recording modules as small as possible. They should do only one action. For example, one module to click a specific button, or one module to enter text in a specific field. Name the modules appropriately so anyone using them will know exactly what they are supposed to do. Doing this allows you to just drag-and-drop your modules into your test suite/test case in the order needed for the test.
2. Make sure your XPaths are correct, and use rooted folders in your repository to keep elements that are under the same parent element together. This will keep everything organized and easier to follow.
3. Experiment. Make a new test solution and try things out in it so you don't mess up your main test solution.


Most importantly: USE A VERSION CONTROL SYSTEM!!! This will save you a lot of work if anything ever goes wrong, or if you make a mistake with the code. You are working on a software development project, developing tests, you need to treat your automated tests the same as your developers treat their code base.


I highly recommend reading the whole User Guide. It contains a lot of information about how Ranorex works and how to do things with it. http://www.ranorex.com/support/user-guide-20.html

And, ask a lot of questions. There are several great people on here that are always around to help out.
Shortcuts usually aren't...