Is it possible to send my own text to Ranorex.Controls.ProgressForm?
Generally I do not use it, but I do have a case where I am doing a lot of "unseen" calculations and comparisons in my automation code. It would look to anyone watching that the system is doing nothing.
Rather than create my own dialog and populate with the information then dispose of the dialog, I would like to Show() the ProgressForm, update it with information as to what is going on in the test, then Hide() the ProgressForm when the long test is complete. Thus providing the user with feedback that indeed, something is happening.
Currently, when I Show() the form the only thing that is listed is "User Code" which is not very descriptive.
Thanks...
Can I control Ranorex.Controls.ProgressForm?
Can I control Ranorex.Controls.ProgressForm?
You do not have the required permissions to view the files attached to this post.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Can I control Ranorex.Controls.ProgressForm?
I got this snippet from Michael a while back....basically you need to set up a "TestReport" for it to output information. After doing so, every Report statement will output in the wee form. The second bit is only needed if you want to customise the name of the test displayed etc.
Code: Select all
TestReport.Setup(ReportLevel.None, "tempTestReport.rxlog", false);
TestReport.EnableTracingScreenshots = false;
TestReport.ReportWriteInterval = 0;
Ranorex.Controls.ProgressForm.Show();
//Shows Test Suite name and running test name in progress form
using (new ActivityContext(new TestSuiteActivity("Automation", "", 0, null, "", "")))
{
using (new ActivityContext(new TestCaseActivity("Test", "", "", "", 0, 0, null, "", null)))
{
}
}
Re: Can I control Ranorex.Controls.ProgressForm?
Hmmm, I do already set up a test report (although I set it to an XML file instead of an RXLOG file) and none of my Report.XXX statements make it into the ProgressForm...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Can I control Ranorex.Controls.ProgressForm?
You sure it's TestReport and not Report that you use?!
Re: Can I control Ranorex.Controls.ProgressForm?
Ahh! well look at that... You are correct... So much for my reading and comprehension skills...
So what's the difference with a Report and TestReport?
Since I only want to use the ProgressForm in a small area of code that takes a long time to run, I suppose I would have no issues generating the TestReport there then disposing it when I am done?
Thanks for the pointer... I'll start looking into it.
So what's the difference with a Report and TestReport?
Since I only want to use the ProgressForm in a small area of code that takes a long time to run, I suppose I would have no issues generating the TestReport there then disposing it when I am done?
Thanks for the pointer... I'll start looking into it.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Can I control Ranorex.Controls.ProgressForm?
They both look slightly different! Apart from that I'm not too sure tbh, maybe the Ranorex team can shed some light on this?
That bit of code is the code that I use as we already had a style sheet set up for the old report and didn't want to have to mess around with it. We still use the Report.Setup but you'll notice in the TestReport.Setup the logging level is set to none and the report name is the same so just gets overwritten each time.
That bit of code is the code that I use as we already had a style sheet set up for the old report and didn't want to have to mess around with it. We still use the Report.Setup but you'll notice in the TestReport.Setup the logging level is set to none and the report name is the same so just gets overwritten each time.
Re: Can I control Ranorex.Controls.ProgressForm?
Thanks again for the info... Got it working, mostly.
Do you get this exception when hiding the ProgressForm or do you even Hide the form?
http://www.ranorex.com/forum/exception- ... t2319.html
Do you get this exception when hiding the ProgressForm or do you even Hide the form?
http://www.ranorex.com/forum/exception- ... t2319.html
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Can I control Ranorex.Controls.ProgressForm?
I've never had the need to hide it...it jumps around automatically if it's going to obstruct anything you are working with!
As a temp workaround for that issue you could set Control.CheckForIllegalCrossThreadCalls = false.
As a temp workaround for that issue you could set Control.CheckForIllegalCrossThreadCalls = false.