Search found 35 matches

by hporter
Fri Jun 07, 2013 5:45 pm
Forum: General Questions
Topic: Report name switches don't work if test is run via .bat
Replies: 4
Views: 1814

Re: Report name switches don't work if test is run via .bat

I've figured it out - apparently the '%' is a special character in .bat files. You have to double up every occurrence of it to circumvent that. Once I did that, it worked fine. Thanks again!
by hporter
Fri Jun 07, 2013 5:19 pm
Forum: General Questions
Topic: Report name switches don't work if test is run via .bat
Replies: 4
Views: 1814

Re: Report name switches don't work if test is run via .bat

Thanks for the quick reply. That occurred to me as well...in fact, I think there was a forum post I came across that said as much. I did update to 4.0.4 (I believe I was on 4.0.1), but it seems the issue still persists for me.
by hporter
Fri Jun 07, 2013 3:37 pm
Forum: General Questions
Topic: Report name switches don't work if test is run via .bat
Replies: 4
Views: 1814

Report name switches don't work if test is run via .bat

I have a batch file that kicks off my test with the following command: "C:\HP RX tests\RelEng_Build\RelEng_Build\bin\Debug\RelEng_Build.exe" /pa:farm=cpbuild2013 /rf:"C:\HP RX tests\RelEng_Build\RelEng_Build\bin\Debug\%S_%Y%M%D_%T.rxlog" However, when the report file is actually created, it shows up...
by hporter
Wed May 01, 2013 9:31 pm
Forum: General Questions
Topic: reuse/import entire test case?
Replies: 1
Views: 1745

reuse/import entire test case?

I understand how to import/add existing modules to a solution, but is there a way to import an entire test case to another test suite? Sure, I could add the individual modules themselves, and recreate the test case, but that would be time consuming. Additionally, I've got specific data sources mappe...
by hporter
Wed Feb 20, 2013 4:56 pm
Forum: Automation API
Topic: 'Object reference' error when using string methods
Replies: 5
Views: 3384

Re: 'Object reference' error when using string methods

Thank you all so much for the assistance! Your information was most helpful. What I believe was happening was, when I was making my initial check on InnerText, at that exact moment it was still set to null, so it broke. I've added a check where, if InnerText is set to null, it does a short thread.sl...
by hporter
Wed Feb 20, 2013 2:14 am
Forum: Automation API
Topic: 'Object reference' error when using string methods
Replies: 5
Views: 3384

Re: 'Object reference' error when using string methods

Thank you for the quick response, as always! No effect with that change, unfortunately; the error still occurs. Actually, that's how it was written initially, but thought perhaps that not first assigning the variable a null value was causing it, hence setting it to null first. The code seems so basi...
by hporter
Tue Feb 19, 2013 9:49 pm
Forum: Automation API
Topic: 'Object reference' error when using string methods
Replies: 5
Views: 3384

'Object reference' error when using string methods

Hi, the test I am writing uses a While loop to query the state of a label on the webpage. If the InnerText of the label contains a particular string, the While loop exits. The trouble is, I'm getting an 'Object reference' error whenever I try to invoke the appropriate string method. Here is the code...
by hporter
Sat Feb 16, 2013 9:10 pm
Forum: Automation API
Topic: how to check for label state change
Replies: 11
Views: 2279

Re: how to check for label state change

I think I've figured it out - I was referring to ExecXML_StatusInfo, where it really should be just ExecXML_Status. I believe using that should get me to the InnerText element. Will retry next week.
by hporter
Fri Feb 15, 2013 7:40 pm
Forum: Automation API
Topic: how to check for label state change
Replies: 11
Views: 2279

Re: how to check for label state change

Perhaps I'm referencing it incorrectly? It's just, the only way I can think of referencing that element is through the repo. If there's another way to reference it, I'd be eager to hear it. That would certainly make things for me much easier. Thanks again!
by hporter
Fri Feb 15, 2013 5:13 pm
Forum: Automation API
Topic: how to check for label state change
Replies: 11
Views: 2279

Re: how to check for label state change

That definitely makes sense, but my problem seems to be that I can't access InnerText in that fashion. It appears that I can only get to ExecXML_StatusInfo thru the repository: repo.ExecuteSavedInstructions.ExecXML_StatusInfo and InnerText isn't showing in the drop-down from there in the IDE. So you...
by hporter
Fri Feb 15, 2013 4:29 pm
Forum: Automation API
Topic: how to check for label state change
Replies: 11
Views: 2279

Re: how to check for label state change

Thank you all for your replies. I get the drift of what you are suggesting, but I'm having difficulty implementing it. The label in question I've renamed ExecXML_Status, and its path in the repository is: .//span[#'ctl00_lblStatus'] The current version of the validation involves checking the InnerTe...
by hporter
Tue Feb 12, 2013 12:56 am
Forum: Automation API
Topic: how to check for label state change
Replies: 11
Views: 2279

how to check for label state change

The area I'm writing a test for involves a progress label. This label updates itself during a check of a SharePoint farm. It updates with messages like: Processing: MySPSite which changes to: Processing: MySecondSPSite and so on until it goes through all sites on the SP farm. Finally, when it finish...
by hporter
Thu Feb 07, 2013 3:35 pm
Forum: General Questions
Topic: Ranorex command prompt causes IE browser to lose focus
Replies: 4
Views: 2202

Re: Ranorex command prompt causes IE browser to lose focus

OK, thanks again for the assistance!
by hporter
Thu Feb 07, 2013 3:33 pm
Forum: Automation Tools
Topic: using command line variable to create URL at runtime?
Replies: 5
Views: 2762

Re: using command line variable to create URL at runtime?

I've finally got this working (though the code involved could stand a polish or two). I basically did away with the existing recording module that opened the browser, and created my own code module that calls OpenBrowser and passes in the global variable for the farm name as part of its URL.
by hporter
Thu Feb 07, 2013 12:07 am
Forum: General Questions
Topic: Ranorex command prompt causes IE browser to lose focus
Replies: 4
Views: 2202

Re: Ranorex command prompt causes IE browser to lose focus

Thanks so much, Ciege - that method did the trick! I have a recording module called OpenBr that opens the browser, and I copied the code snipped into the Init() method of the UserCode.cs for that module. Is that the accepted way of using this code, or is there a more elegant approach I should adopt?...