Search found 30 matches
- Tue Jul 30, 2019 9:59 am
- Forum: General Questions
- Topic: How to get current test case name
- Replies: 3
- Views: 2642
Re: How to get current test case name
Are you running just your code module where you call TestSuite.CurrentTestContainer? Ie the big "Run Code" button from the code editor? If so then there simply is no Test Suite at that point. You have to run your test from the Test Suite using the Run button, or Run Selected Smart Folder/Run Select...
- Mon Jul 29, 2019 5:12 pm
- Forum: General Questions
- Topic: How to get current test case name
- Replies: 3
- Views: 2642
How to get current test case name
Hello Ranorex, I'm trying to save a .txt file with durations of my tests into a specific folder for each of my test cases. For example: 1. I want to run the test_0001 2. I want to save the duration of it into a .txt file The code of my test_0001 is something like: getStartTime(); DoStuff(); getEndTi...
- Tue Nov 14, 2017 11:29 am
- Forum: Automation Tools
- Topic: Ranorex Application Not Responding Exception - Kills my app
- Replies: 2
- Views: 2498
Re: Ranorex Application Not Responding Exception - Kills my app
As described in the solution, everything works just fine now
Thanks!
Thanks!
- Mon Nov 13, 2017 6:21 pm
- Forum: Automation Tools
- Topic: Ranorex Application Not Responding Exception - Kills my app
- Replies: 2
- Views: 2498
Ranorex Application Not Responding Exception - Kills my app
Hi Ranorex, So I updated my Ranorex 7.0 to Ranorex 7.2.1 and now when I try to run my automation tests, after a few seconds of my WPF app launches, the test fails and gives me: Exception of type 'Ranorex.ApplicationNotRespondingException' was thrown. My app is just getting data from the DB, it's res...
- Tue Jul 11, 2017 9:46 am
- Forum: How To …
- Topic: Re-run failed tests, is there an option for this?
- Replies: 4
- Views: 2716
Re: Re-run failed tests, is there an option for this?
First, no, there is no built-in way to rerun failed tests. Second, if you tests are timing out you need to either increase the timeout, or change the RanoreXPath so that it is more specific (which makes it faster), or both. Having a good XPath is usually the best way to speed up tests and get aroun...
- Mon Jul 10, 2017 4:03 pm
- Forum: How To …
- Topic: Re-run failed tests, is there an option for this?
- Replies: 4
- Views: 2716
Re-run failed tests, is there an option for this?
I searched on the forum for this topic and it seems there's a lot of people asking the same thing and no one answering a proper answer. This been said, I decided to make a post and ask to the Ranorex Devs and Support Team, is there an option or a code block to re-run the failed tests on Ranorex? I h...
- Tue Jan 03, 2017 5:49 pm
- Forum: Automation API
- Topic: Convert String to Repo Element
- Replies: 27
- Views: 8014
Re: Convert String to Repo Element
So I found the solution to my problem, along with some help from our fellow friends at stackoverflow :) On our method: for (int i = 0; i < length; i++) { if (arrayOfCharacters[i].ToString() == ".") { repo.FO.FLOW2FO.Container2.BtnComma.Click(); } else { repoItemName = "Button" + arrayOfCharacters[i]...
- Tue Jan 03, 2017 4:55 pm
- Forum: Automation API
- Topic: Convert String to Repo Element
- Replies: 27
- Views: 8014
Re: Convert String to Repo Element
I've got a severe case of vacation brain, so I woudn't expect it to work :D You are correct _repo should be just repo as it refers to our repository variable StringToRepoItemRepository repo = StringToRepoItemRepository.Instance; You'll need to add something in the catch exception that tells you wha...
- Tue Jan 03, 2017 2:14 pm
- Forum: Automation API
- Topic: Convert String to Repo Element
- Replies: 27
- Views: 8014
Re: Convert String to Repo Element
Is there a way to be able to use our "v" method to perform clicks with the repository items found? Thanks. You're asking for two very different things. Our initial functionality was about finding an object by name and waiting for it to exist, thus targeting the repoiteminfo. In order to click the o...
- Tue Jan 03, 2017 1:54 pm
- Forum: Automation API
- Topic: Convert String to Repo Element
- Replies: 27
- Views: 8014
Re: Convert String to Repo Element
Hi xibinki, Based on your provided code, I have created a small sample. I hope it helps you to meet your requirements :mrgreen: : string repoItemName = "Button1"; //Query RepoItemInfo objects based on the repository item name IEnumerable<RepoItemInfo> myQuery = from things in repo.MyApp.SelfInfo.Ch...
- Mon Jan 02, 2017 1:59 pm
- Forum: Automation API
- Topic: Convert String to Repo Element
- Replies: 27
- Views: 8014
Re: Convert String to Repo Element
Hi, The error message tells you what the problem is ;-) You are using the RepoItemInfo object which has no definition for a click method. You can try to search for the repository items and not their info objects. For example: repo.BO.SIGABOClient.Importacao.Children Cheers, Robin I've tried what yo...
- Fri Dec 30, 2016 6:24 pm
- Forum: Object Identification and Technologies
- Topic: Same app open and can't define which one to search element
- Replies: 3
- Views: 2131
Re: Same app open and can't define which one to search element
Hi, It seems the Ranorex path for both applications is the same. Did you already try to change the Ranorex path to make the apps unique. If the path is unique Ranorex is able to recognize the correct instance. Cheers, Robin Hi, thanks for answering. Well, the Ranorex path for both applications is i...
- Wed Dec 28, 2016 4:12 pm
- Forum: Object Identification and Technologies
- Topic: Same app open and can't define which one to search element
- Replies: 3
- Views: 2131
Same app open and can't define which one to search element
Hi Ranorex, I'm having an issue while creating automated tests. My scenario is this, I have the same app open but with different web services attached: 1. AppBO with ERP1 2. AppBO with ERP2 The operations that I'm doing are exactly the same on both apps, but when I perform a repository element .Wait...
- Wed Dec 28, 2016 1:21 pm
- Forum: Automation API
- Topic: Convert String to Repo Element
- Replies: 27
- Views: 8014
Re: Convert String to Repo Element
Ok, I still haven't figured out how to search by the object's full name, but I found what can only be considered black magic over at stackoverflow that seems to work for us. I just straight up lifted their code and I only have the vaguest idea how it works (as designated by the class name 'Idonteve...
- Tue Dec 13, 2016 1:40 pm
- Forum: Automation API
- Topic: Convert String to Repo Element
- Replies: 27
- Views: 8014
Re: Convert String to Repo Element
There is clearly a problem with the code. Like I said my C# isn't all that great. I'll see if I can't get a working version of the C# up here sometime today. --EDIT-- As with most things, it's a simple problem and totally my fault. public RepoItemInfo SearchRepoItemByName(string repoItemName) { var...