The online community for software testing & quality assurance professionals
   
Active Topics Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Jobs
Training
News
Links
Downloads

News Group:
software.testing


Testing
Automation
Performance
Engineering
Miscellaneous
Statistics
Poll
  QA Forums
  WinRunner
  loading dlls & testing

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   loading dlls & testing
novice
Member

Posts: 36
Registered: Feb 2002

posted 07-11-2002 11:45 AM     Click Here to See the Profile for novice   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by novice
Hi

I have read that for certain things you have to create & load dlls for testing ?

I have no idea on this ? Could someone on the forum throw some light.

thanks

------------------

IP Logged

mrstinklepuss
Member

Posts: 51
Registered: Jun 2002

posted 07-11-2002 11:59 AM     Click Here to See the Profile for mrstinklepuss   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by mrstinklepuss
You can load a dll file if you know the full path:


load_ddl("yourDLL.dll");

Then let's say that yourDLL.dll contains a function called: "addition(int x, int y)" which returns a integer value.


Then you can define an external function that accesses the above function as follows:

extern int addition(in int, in int); # this is TSL code!

Now whenever you call that function, it should invoke the function in the DLL.....but I could be wrong. You should investigate the User Manual for exact details.

------------------

IP Logged

novice
Member

Posts: 36
Registered: Feb 2002

posted 07-11-2002 12:03 PM     Click Here to See the Profile for novice   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by novice
I have a basic question, In what context do we have to load a dll ?

AND how do we create it ?

------------------

IP Logged

bpolitzer
Guru

Posts: 352
Registered: Jun 2002

posted 07-11-2002 12:11 PM     Click Here to See the Profile for bpolitzer   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by bpolitzer
The dll is created in visual c++ or another development environment (Visual Basic can't be used).

You can also use pre-existing dll's in the C:\winnt\system32 directory (KERENL32.dll).

The dll must export a function in a standard format (I believe this is called extern C)

The reason you would do this would be to use a function written in another programming language such as C or C++ .

It's common to load and use dll's for win32 api functions.

------------------

IP Logged

cranem451
Guru

Posts: 395
Registered: Mar 2002

posted 07-13-2002 03:34 AM     Click Here to See the Profile for cranem451   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by cranem451
Link to example code: 16845538.zip

Example code located at above link for loading a DLL to get access to a function named "GetTickCount()" located in USER32.DLL in the Windows-System directory. The function "GetTickCount()" is used to "seed" the Random Number Generator so you get a more true ranndom number.

DLL files can enhance a test by providing functionality missing from WinRunner!

[This message has been edited by cranem451 (edited 07-20-2002).]

IP Logged

eranb
New Member

Posts: 3
Registered: Jul 2002

posted 07-14-2002 04:16 AM     Click Here to See the Profile for eranb   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by eranb
are you sure that this is the correct attachments

------------------

IP Logged

cranem451
Guru

Posts: 395
Registered: Mar 2002

posted 07-14-2002 05:19 PM     Click Here to See the Profile for cranem451   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by cranem451

16845538.txt

 
It is the wrong one...
Re-Upload file...

DLL files can enhance a test by providing functionality missing from WinRunner!

The other script was in response to a problem sending the TAB key to a field.

When you TAB out of the field a component of the application is changed, the Size of the Font...

[This message has been edited by cranem451 (edited 07-17-2002).]

IP Logged

All times are PT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A Reply
Hop to:

Contact Us | BetaSoft Inc. | Privacy Statement

Copyright © 1997-2003 BetaSoft Inc.


Ultimate Bulletin Board 5.45c