|
|
Hi,
I'm need to stress test an device that has a http interface. I created a program with the web-brower object and I can access the page. I'm having a hard time figuring out how to insert data into some forms on the webpage.
Any ideas?
Thanks!
|
|
|
|
|
Save yourself the time and get this[^]. You can script all of your testing and have as many simulated clients as you want beating up on your web app.
|
|
|
|
|
Hi,
Sorry I do not understand your question. What do you mean http interface?
|
|
|
|
|
|
So I've written a C# winform application that's supposed to be launched by an MFC application. All is working well until my boss asks if there's a way for me to lock the MFC application until my application was closed.
Since I just didn't see the possibility of reverse engineering the MFC app and gaining control from my app, my straight answer was "no" and that he should check to see if the MFC app he's using is able to launch my application and wait for it to close.
Now I'd like to keep my bases covered and make sure that I was correct here that I'm just way out of scope to be able to do anything with his app besides accept command line arguments.
|
|
|
|
|
jchalfant wrote: All is working well until my boss asks if there's a way for me to lock the MFC application until my application was closed.
The short answer is No. You have no control of another app's message pump or it's response to it.
The long answer is maybe, with a lot of research into hooking message pumps and filtering messages. I can see a bunch of potential problems doing this though.
|
|
|
|
|
|
Is there a way to retrieve the path of the .msi file programmatically that is currently being installed?
|
|
|
|
|
maznblue wrote: Is there a way to retrieve the path of the .msi file programmatically that is currently being installed?
Why would you want to??
|
|
|
|
|
I have a generic application that relies on "Plugins" (extra dll's) that drive the program. Depending on who we ship the program to I would like to ship them the generic application (in the msi) with a custom zipped file containing the appropraite dlls. The zipped file is built by the engineers from dlls that are downloaded from a site specifically for the customer they are dealing with.
|
|
|
|
|
If you need the path in a deferred custom action (the ones you create in a VS deployment project), then you'll have to pass it in the CustomActionData.
The installer property for the path of the msi file is SourceDir IIRC.
So if you set the CustomActionData to [SourceDir] , then you should be able to retrieve it inside the custom action using the current Installer object's properties.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thanks, I will give that a try today. If it doesn't work I came up with a work around.
|
|
|
|
|
I tried out your solution and it worked like a champ!!!!! Thanks for the help.
|
|
|
|
|
I have Date..
which is user input by using " DateTimePicker " ...
But now i want to make sure this user is uder 18 year or not...
So what should do ?
-Thanks
Peter
modified on Thursday, April 3, 2008 2:48 PM
|
|
|
|
|
pakpatel wrote: But now i want to chek if this user is uder 18 year or not
There is no way to tell without meeting in person, and even then it can be iffy.
Whenever a Website asks for my birthdate I use 1900-01-01 and watch what happens.
|
|
|
|
|
pakpatel wrote: But now i want to chek if this user is uder 18 year or not
That is not possible with the information given.
You can check if the date entered is at least 18 years ago. Just take the current date, subtract 18 years from it, and compare the dates:
if (enteredDate <= DateTime.ToDay.AddYears(-18)) ...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thnks For Your Help..
I get it
Peter
|
|
|
|
|
Basically I have a dialog box that has a TextBox inside of it. The object is never deleted and the previous input values still stay filled whenever I open the dialog.
I'd like to add a handler so that when ShowDialog is called, I will able to clear the textbox, checkboxes and put the focus on the textbox.
I appreciate any help, and thanks for your time.
|
|
|
|
|
Either dispose the form when it is closed or clear the contents of the textbox in the load event of the form.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
A using block would clean that up nicely for you. Just remember that if you have your own crazy flavor of dialog that it implements IDisposable somewhere in the class hierarchy.
<code>
using(ShowDialog sd = new ShowDialog()){
sd.ShowDialog();
result = sd.Result();
}
</code>
"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand
|
|
|
|
|
How can I write a byte value to a textual file stream as a single-byte char? I'm using a StreamWriter instance. For example, assuming that myChar is a variable of type char with a value of 165, when I do this...
sw.Write(myChar);
...then two bytes are written to the file because .NET automatically converts that value (the old ASCII character N with a tilde accent mark) into Unicode. However, when I do this...
sw.Write((byte)myChar);
The hex string representation "A5" of the byte value 165 gets written. I don't want Unicode conversion, and I don't want a string representation. I want to stuff the actual hex value A5 (decimal 165, binary 10100101) into a single-byte slot in the output file.
I'm thinking I might have to use a BinaryWriter class instead, but wouldn't that be a headache when the rest of the file in the data is string data?
Thanks.
|
|
|
|
|
You could use BinaryWriter, or try to change the encoding of the text file (I don't know if that only applies to TextReader/Writer) to ASCII.
|
|
|
|
|
I tried adding a System.Text.ASCIIEncoding class in the StreamWriter constructor. Didn't really help. Any value above the normal alphabetic set is replaced with a "?" character (0x3F). So my value 165 (0xA5) gets obliterated anyway.
Guess I'll have to go binary.
Thanks.
|
|
|
|
|
Is there a way to change it to use 8-bit extended ASCII? ANSI or something?
|
|
|
|