|
You're right I forgot to mention that.
I'm doing a test suite to test application's GUIs and one problem to do this is the identification of components. You may have Controls with the same name, with the same automation ID, so there is no unique identifier to a Component that identifies it over different executions and different versions of the software.
The idea is to add an ID to the Control class that would automatically be created and that would allow me to identify controls (I want to add other things but this is my main reason).
Thanks
|
|
|
|
|
jpsstavares wrote: I'm doing a test suite to test application's GUIs
Ok, that explains a lot. Good luck, way outside my area of knowledge.
led mike
|
|
|
|
|
Hi,
Controls have a Tag property that normally is not used at all (by the Control
itself), i.e. it is reserved for the user, so he can attach an object of his
choice. Maybe that is sufficient to solve your identification problem?
|
|
|
|
|
jpsstavares wrote: I'm doing a test suite to test application's GUIs
There are already programs out there that accomplish this. We use QA Wizard Pro[^] from Seapine. Granted, it's not cheap (most programs like this aren't), but it does it's job quite well. Also, their support staff is the most helpful customer support I've ever dealt with.
Brandon
|
|
|
|
|
If they are visual controls, the HWND should be unique for each control.
|
|
|
|
|
Pete O'Hanlon wrote: If they are visual controls, the HWND should be unique for each control.
Yes but they are unique in each execution of the application. But for each test case the application is launched and closed so I cannot use the HWND...
|
|
|
|
|
But you could, if you reacquired the HWND whenever the app was launched. You know the controls you want, and you can hook in and get the HWND when it runs.
|
|
|
|
|
Dear All,
I have a windows application and I have created a setup in Intel System.
When it is installed in the client machine which has AMD processor it is installed successfully, but when clicking on the exe it is giving and error and it is not working.
Then i tried to reproduce it in out environment which has the AMD processor. I faced the same issue and then installed VS 2005 in that system and created the setup and tested the same in the AMD and Inter processor systems it worked well.
Then I gave the same setup to the client and the client is facing the same issue and it throws an error and the application is not opening.
Have any one faced the same issue?
Can any one tell me how to get rid of this?
Thank you a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: Have any one faced the same issue?
Probably. I have not.
M. J. Jaya Chitra wrote: Can any one tell me how to get rid of this?
Sure. Fix the bugs in your code.
If you need help, be more specific. What AMD processors do fail, and
what Intel processors do succeed in running your code?
And what is your application, what languages and tools did you use, what
fancy stuff is in there?
Could it be those AMDs are multi-core and those Intels are single-core,
implying you have a thread synchronisation problem?
Could it be you are using assembly instructions that exist on AMD but not
on Intel (as in the SIMD instruction sets, which are quite different)?
|
|
|
|
|
I would bet this isn't an AMD vs Intel thing...
But yer gonna hafta Do some debugging/research in order to figure out what is causing it.
Search the net for the error message to find out what might be causing it.
I believe you said you installed VS2k5 on one of the machines that wasn't working and it started working again? If that is the case, I would almost guarantee that you are missing a library on the machines that are not working.
|
|
|
|
|
Hi,
Can anyone say me the difference between framework class library and base class library in .Net.
-Harshini
|
|
|
|
|
The base class library is exactly that. It's the base set of classes provided by the .net framework for the fundamental functionality.
the framework class library is the extended set of classes that provide more advanced and specific functionality. The FCL is the BCL + a bunch of extra stuff.
BCL[^]
FCL[^]
Most of the time you don't really need to care weather a class you are using is in the BCL or the FCL. It only really becomes important if you want to use alternative .net implementations like Mono as they don't fully implement the FCL.
Simon
|
|
|
|
|
I am having problem to delete a Managed C++ DLL that was used in a
pure C# DLL even in the following scenario.
1. Launch the application. This applicatio has its own default
applicaiton domain.
2. Create a new Application Domain.
3. Load the Pure C# DLL in the new applicaiton domain. This C# DLL uses
managed C++ DLL.
4. Create a Proxy object using CreateInstanceAndUnwrap for the wrapper
object which is a wrapper for the class used from the pure C# DLL.
This wrapper object is exported from a seperate DLL.
DLL Configuration:- Wrapper for C# DLL, C# DLL, Managed C++ DLL.
The wrapper C# is used so that the main C# will not be loaded into
the default application domain when creating a Proxy object using the
menthod CreateInstanceAndUnwrap. The application domain talks with
only the wrapper DLL. If we do not have wrapper class, then the main
C# DLL will also be loaded into the default application. The sideeffect
of this is that, even when the new application is unloaded, we will not
be able to delete the main C# DLL. Wrapper is just a call frowader to
the C# DLL class.
5. Give the class name exported from C# DLL to the wrapper object and ask
it to create an instance of the class. The wrapper class creates the
the class and initializes its membet to it, so that it can forward
call requests.
6. From the default application domain, call a method on the wrapper object.
This call on the wrapper object calls the method on the C# class. This
C# class uses a function exported from a managed C++ DLL.
7. After executing the methods, unload the new application domain.
8. Now try to delete C# DLL, Mananged C++ DLL.
I was able to delete C# DLL, but not MC++ DLL. After further investigation
I found that the Visual Studio "Output" window has the following two lines:-
'Application.exe': Loaded 'C:\DLL1\Debug\MCPP.dll', Symbols loaded.----> LOADING FIRST TIME
'Application.exe' (Managed): Loaded 'C:\DLL1\Debug\MCPP.dll', Symbols loaded. ----> LOADING SECOND TIME
When the method on C# class is getting executed, the output log file
contains the above two lines. The .NET framework is loading it twice.
Once as Native C++ DLL, second time as Managed DLL.
Does any one know how to delete the MC++ DLL.
|
|
|
|
|
|
I am writing a static class with four static members using C#.NET.
This class is being used in the application.
I want to make this class common for diffrent instances of the application.
Static class instances must not be created seperately for each instance of the application.
Application(Asp.Net) variables cannot be used here as it is Windows Application.
Thanks,
Nagaraj
|
|
|
|
|
You can't. The objects are only accessible from within the app domain.
What is it you are trying to do?
If you are trying to pass data between app domains you could consider remoting[^], WCF[^], or this article[^]
Simon
|
|
|
|
|
|
You can use IPC[^] for exchanging data between process. .Net Framework includes classes for IPC.
|
|
|
|
|
Hi there
I am in a strange scenario. I have written a Windows Service (in C#) which downloads XML files, processes them and produces a certain output. Now, for debugging purposes I have created a class which runs this service without installing the service first, so it makes debugging easier. (No, it just runs as an ordinary application).
It works like that 100%. Now as soon as I use the service class as the starting point, (to launch it as an actual windows service), install it and run, it runs but every time it tries to download something, it gives me a time out message to a url that is not even the url it is supposed to visit.
Does anyone know what this could be?
It is a LocalSystem based service on an open (yet safe) network, so there is no username/password credentials, no firewall interference, etc. Could it be a policy or something?
To make sure it wasn't something I did in my code, I created a new windows service project to test:
<br />
public partial class Service1 : ServiceBase<br />
{<br />
public Service1()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
protected override void OnStart(string[] args)<br />
{<br />
System.Diagnostics.Debugger.Launch();<br />
WebClient client = new WebClient();<br />
string text = client.DownloadString("http://www.google.co.za");<br />
File.WriteAllText("c:\\temp\\output.txt", text);<br />
}<br />
<br />
protected override void OnStop()<br />
{<br />
}<br />
}<br />
It does exactly the same thing.
Thanks
Regards,
LA
|
|
|
|
|
Ok, I now know it is something wrong on my DEV machine.
I have copied and installed this on a different machine and it downloaded the Google page and created the output to c:\temp\output.txt correctly.
Hmm... so I wonder whats wrong with my dev box?
- Last Attacker
|
|
|
|
|
Is windows firewall turned on?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hey John
Thanks for the reply.
Yes the firewall is on but I don't see how that could effect the service.
Anyway, I spoke to the guys here to redo my PC, so pretty soon (hopefully) I shouldn't have that problem anymore.
I am testing the service now off another machine in the mean time so its fine. The one which I had a problem with initially.
Thanks again.
- Last Attacker
|
|
|
|
|
Hi,
I have gridview,if i select the gridview means cursor may change to hand sytle..
I had used this code for hand style..
e.Row.Attributes["onmouseover"] = "this.style.cursor='hand'";
but this code works good in internet explorer,but not work in firefox.
let me know what should i use to change the cursor style in firefox..
Thanks
|
|
|
|
|
e.Row.Attributes["onmouseover"] = "this.style.cursor='pointer'";
You should use css for that kind of tasks,though.
Best regards.
J.
|
|
|
|
|
Hello,
In order to test my web service I am going to install windows 2003 on vmware and deploy web service on it. Is there anything I should consider either while installing windows 2003 on vwmare or while deploying web service so that I don't have problems accessing the web service from the clint?
Thanks.
|
|
|
|