Search found 17 matches

by agroenen
Thu Jun 14, 2018 3:06 pm
Forum: Automation API
Topic: IList; is it possible to refresh?
Replies: 3
Views: 1936

Re: IList; is it possible to refresh?

I managed to solve it by using a "while" loop, instead of foreach. Error isn't coming up in this way. @RobinHood: I can't explain it better, after the first element is deleted this error comes up. I thought that was maybe because it is still in the list, but I don't understand it either because it s...
by agroenen
Tue Jun 12, 2018 12:01 pm
Forum: Automation API
Topic: IList; is it possible to refresh?
Replies: 3
Views: 1936

IList; is it possible to refresh?

We have a few screens where repository-items are visible multiple times. This code clicks on all of them: public void ClickAlleElementen(Ranorex.Core.Repository.RepoItemInfo K2WItem) { IList<Unknown> elementList = K2WItem.CreateAdapters<Unknown>(); foreach (Ranorex.Unknown element in elementList) { ...
by agroenen
Mon Oct 16, 2017 10:26 am
Forum: Automation Tools
Topic: Masking password on two different places
Replies: 5
Views: 2251

Re: Masking password on two different places

I can agree with that, but HOW can we us a fake-email address on a SMTP-server, with which no-one can do any harm, since the password appears in the report?
by agroenen
Wed Oct 11, 2017 11:46 am
Forum: Automation Tools
Topic: Masking password on two different places
Replies: 5
Views: 2251

Re: Masking password on two different places

I don't see why TA'ers should see each others passwords...? Passwords are masked in the data connector source file (Access database). The Automation Helper EmailModule is showing the password in the report too. Since we are working with a Microsoft Exchange server, that's the same password to login ...
by agroenen
Wed Oct 11, 2017 10:05 am
Forum: Automation Tools
Topic: Masking password on two different places
Replies: 5
Views: 2251

Masking password on two different places

It is possible to mask a binded password in the outcoming report. But the password is still visible when you rightclick the smart folder, choose for Data Source; all binded rows are visible, including passwords. How to avoid that? The same for Ranorex Automation Helper EmailModule; how to mask the n...
by agroenen
Thu Jun 01, 2017 12:50 pm
Forum: Automation Tools
Topic: How to enable/disable test module (recording or code)
Replies: 5
Views: 3138

Re: How to enable/disable test module (recording or code)

Thank you for your clear answer! This is the end result (if K2WItem exists go on, else disable Testcasenaam), and it works great: public static void ValidateSkip(Ranorex.Core.Repository.RepoItemInfo K2WItem, string Testcasenaam) { if(K2WItem.Exists(new Duration(1000))) { Report.Info(K2WItem +" besta...
by agroenen
Tue May 30, 2017 2:40 pm
Forum: Automation Tools
Topic: How to enable/disable test module (recording or code)
Replies: 5
Views: 3138

Re: How to enable/disable test module (recording or code)

That would be too bad....
Is there a possibility to stop (without failure!) the current test module, based on validation then?
by agroenen
Tue May 30, 2017 2:08 pm
Forum: Automation Tools
Topic: How to enable/disable test module (recording or code)
Replies: 5
Views: 3138

How to enable/disable test module (recording or code)

I'd like, depending on a condition in a code module, to enable or disable a test module in another test case (but in the same test suite). This is what I get so far: public static void ValidateSkip(Ranorex.Core.Repository.RepoItemInfo K2WItem, string Modulenaam) { if(K2WItem.Exists(new Duration(1000...
by agroenen
Mon Apr 03, 2017 9:59 am
Forum: General Questions
Topic: Sometimes "Object reference not set to an instance of object
Replies: 5
Views: 4770

Re: Sometimes "Object reference not set to an instance of object

We're using Ranorex 6.2.1.
Unfortunately I get the same errors in a clean solution; I runned it in a new recording.
by agroenen
Thu Mar 30, 2017 4:16 pm
Forum: General Questions
Topic: Sometimes "Object reference not set to an instance of object
Replies: 5
Views: 4770

Re: Sometimes "Object reference not set to an instance of object

It seems to happen with a change in all of them. But not always... First: Unexpected error.JPG Then, when I try to run it again: Failed to update code for 'C:\Users\agroenen\Documents\Ranorex\RanorexStudio Projects\K2W\K2W_Desktop\Key2Wocas\TestAnoushka.rxrec'. Object reference not set to an instanc...
by agroenen
Thu Mar 30, 2017 12:29 pm
Forum: General Questions
Topic: Sometimes "Object reference not set to an instance of object
Replies: 5
Views: 4770

Sometimes "Object reference not set to an instance of object

I created usercode that can be used in a recording; it works, but sometimes when I change one of the parameters I get an "unexpected error" and build error "Object reference not set to an instance of an object". When I restart Ranorex it works again. The code gets a date (f.e. $varBouwdatum or 01-01...
by agroenen
Wed Jun 29, 2016 10:15 am
Forum: How To …
Topic: Update data connector
Replies: 7
Views: 2532

Re: Update data connector

The instruction link I got from jma says: Use below namespace. using System.Data.OleDb; I found that strange, but tried it. Also the other way around... still a compiling error. And that was the missing semicolon, I totally missed that one... :? Sorry for that!! Got it working now, BUT not with an A...
by agroenen
Tue Jun 28, 2016 3:25 pm
Forum: How To …
Topic: Update data connector
Replies: 7
Views: 2532

Re: Update data connector

I'm sorry, but not really... I keep getting "The user code class has compile errors". using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Drawing; using System.Threading; using WinForms = System.Windows.Forms; using Ranorex; using Ran...
by agroenen
Mon Jun 27, 2016 2:57 pm
Forum: How To …
Topic: Update data connector
Replies: 7
Views: 2532

Re: Update data connector

I want to write TO the Access database. I created a new house address: Testingstreet 1, 0000AA TestCity. Next time, I want to use house number 2, because it is forbidden to create an address that already exists. So I want to GetValue from the created address (value = 1), and write this +1 to the Acc...
by agroenen
Thu Jun 23, 2016 1:37 pm
Forum: How To …
Topic: Update data connector
Replies: 7
Views: 2532

Update data connector

Hi, I'm pretty new at Ranorex, and not able to code yet. I made an Access database with some variables of an address in it, and bound them to my testcase. That works fine! But what I want now is that if the test case succeeds, the housenumber in the Access database is increased with 1. We start for ...