Search found 16 matches
- Tue Nov 08, 2016 9:48 pm
- Forum: Automation API
- Topic: WebDocument Navigate - HTTP Response Code
- Replies: 3
- Views: 2960
Re: WebDocument Navigate - HTTP Response Code
Hi, There is no built-in function/action to achieve this, but since Ranorex is built on .Net, you can do almost anything you want with it. Check for example this post... http://www.ranorex.com/forum/get-the-error-code-page-ex-404-503-301-302-etc-t3928.html#p16510 Thanks for the reply! I'm currently...
- Tue Nov 08, 2016 9:17 pm
- Forum: Automation API
- Topic: WebDocument Navigate - HTTP Response Code
- Replies: 3
- Views: 2960
WebDocument Navigate - HTTP Response Code
Hey all,
I'm testing a web application and need to make sure that navigating to a URL returns a response code of 200.
How could I get the HTTP response code after navigating to a new page? I would have to do this across several browsers (IE, Chrome, Firefox, Safari).
Thanks!
I'm testing a web application and need to make sure that navigating to a URL returns a response code of 200.
How could I get the HTTP response code after navigating to a new page? I would have to do this across several browsers (IE, Chrome, Firefox, Safari).
Thanks!
- Tue Oct 25, 2016 5:40 pm
- Forum: General Questions
- Topic: Jenkins Setup Error
- Replies: 7
- Views: 2516
Re: Jenkins Setup Error
You can use the following command to end a RDP session and leave the screen unlock. tscon.exe rdp-tcp#0 /dest:console I put that command in a batch file on the desktop. I just double click on the batch file when I want to end the RDP session. As an update, I ended up doing this with a minor modific...
- Wed Oct 12, 2016 1:04 am
- Forum: Automation API
- Topic: Handling ElementNotFound exception when validating
- Replies: 1
- Views: 2076
Handling ElementNotFound exception when validating
I'm a little confused about something. When using Validate.Exists(), we can pass in an Element and a bool specifying whether to throw an exception if the validation fails. What I don't get is why we can choose to throw an exception or not for this particular case. If it does not find the Element, it...
- Tue Oct 04, 2016 8:38 am
- Forum: General Questions
- Topic: Jenkins Setup Error
- Replies: 7
- Views: 2516
Re: Jenkins Setup Error
After doing a little bit of experimenting, I think I've found my issue.
The desktop is being locked after I close Remote Desktop Connection, so while GUI apps are being launched properly, they cannot receive input.
Does anyone know how to keep the session active after dc'ing from Remote Desktop?
The desktop is being locked after I close Remote Desktop Connection, so while GUI apps are being launched properly, they cannot receive input.
Does anyone know how to keep the session active after dc'ing from Remote Desktop?
- Tue Oct 04, 2016 6:00 am
- Forum: General Questions
- Topic: Jenkins Setup Error
- Replies: 7
- Views: 2516
Jenkins Setup Error
Hello, We've been working on getting Jenkins to run on virtual machines. So far, we have resolved the issue with a UI process not being started. Our current problem, however, is that, while the UI process starts on the slave machine, test execution does not proceed! It seems that the slave machine i...
- Mon Sep 26, 2016 4:18 pm
- Forum: Object Identification and Technologies
- Topic: Cannot identify tree items inside a winform container
- Replies: 3
- Views: 1958
Re: Cannot identify tree items inside a winform container
Ranorex Version: 6.1.0
Windows Version: Windows 7 64-bit
Technology Version: .NET Framework 4.0
Let me know if there's anything else that would help.
Windows Version: Windows 7 64-bit
Technology Version: .NET Framework 4.0
Let me know if there's anything else that would help.
- Mon Sep 26, 2016 2:35 pm
- Forum: Object Identification and Technologies
- Topic: Cannot identify tree items inside a winform container
- Replies: 3
- Views: 1958
Cannot identify tree items inside a winform container
Hello all, I seem to have encountered a rather perplexing issue. It seems that, while Ranorex is able to identify the container, as shown in the image, it cannot detect any of the items inside at all! I have tried enabling Qt Legacy support as well as MSAA support, and neither approach has worked. A...
- Fri Sep 02, 2016 7:38 pm
- Forum: Automation API
- Topic: How do I set the current test case status to "Skipped"
- Replies: 7
- Views: 4801
Re: How do I set the current test case status to "Skipped"
Cool! Then you should be able to do it using the TestReport class, then.tvu wrote:Hi johnzer,
Yes, basically I want to end the test case immediately and mark it a skipped. I haven't looked into the TestReport class. I'll give it a try.
Thanks for the tip.
- Fri Sep 02, 2016 6:19 pm
- Forum: Automation API
- Topic: How do I set the current test case status to "Skipped"
- Replies: 7
- Views: 4801
Re: How do I set the current test case status to "Skipped"
Hey tvu, I'm a little unclear as to what it is just want to do. You want to disable all child modules of the current running test, then end the current test, and manually mark it as skipped? Have you looked at the EndTestCase() method in the TestReport class? http://www.ranorex.com/Documentation/Ran...
- Fri Sep 02, 2016 3:59 pm
- Forum: General Questions
- Topic: Use xPath in conditional statement
- Replies: 8
- Views: 3002
Re: Use xPath in conditional statement
Yep, it's a string and the addition of <String> has stopped the errors, but now attrib only ever returns null. :( Any ideas? If it's returning null, then either the attribute is not defined for the element you chose, or the element hasn't loaded by the time you call GetAttribute. As suggested, doub...
- Fri Sep 02, 2016 3:26 pm
- Forum: General Questions
- Topic: Use xPath in conditional statement
- Replies: 8
- Views: 3002
Re: Use xPath in conditional statement
I think you might be using the function incorrectly.
Are you trying to get a String? If so, try:
If not, replace <String> with <[Whatever type you want]>.
Are you trying to get a String? If so, try:
Code: Select all
var attrib = repo.SmartSEMStatus.List10063.BeamStateEqShutdown.GetAttributeValue<String>("InnerText");
- Tue Aug 30, 2016 3:19 pm
- Forum: Object Identification and Technologies
- Topic: How to get list of UI elements and check their attributes?
- Replies: 1
- Views: 3087
Re: How to get list of UI elements and check their attributes?
Found the answer here:
http://www.ranorex.com/forum/identify-c ... t9722.html
Turns out I was misunderstanding what I was actually getting the IList. To access the attribute value, it just needs to be accessed as an attribute of the object, i.e.
http://www.ranorex.com/forum/identify-c ... t9722.html
Turns out I was misunderstanding what I was actually getting the IList. To access the attribute value, it just needs to be accessed as an attribute of the object, i.e.
Code: Select all
NativeWindow.<Attribute>
- Tue Aug 30, 2016 2:44 pm
- Forum: Object Identification and Technologies
- Topic: How to get list of UI elements and check their attributes?
- Replies: 1
- Views: 3087
How to get list of UI elements and check their attributes?
Hello all, I'm trying to figure out how to verify the attributes of a list of elements that each have (somewhat) matching RanoreXPaths. I've tried creating an Adapter, and using that to fetch all matching elements. This works, and the resulting IList has the correct number of elements. When I try us...
- Tue Aug 23, 2016 4:39 pm
- Forum: How To …
- Topic: How to click element with RanoreXpath
- Replies: 1
- Views: 2432
How to click element with RanoreXpath
Hello,
I am working on testing an application. We want to make the tests independent of the position of the element on the screen. How would I go about clicking on an element using it's RanoreXPath, which I already determined using Ranorex Spy?
Thanks.
I am working on testing an application. We want to make the tests independent of the position of the element on the screen. How would I go about clicking on an element using it's RanoreXPath, which I already determined using Ranorex Spy?
Thanks.