Define : WinRunner script to get Min and Max?

Define : WinRunner script to get Min and Max?

Public function fnMinMaxWinrunner(in action)

{

auto handle;

const SW_MAXIMIZE = 3;

const SW_MINIMIZE = 6;

load_dll(\"user32.dll\");

#extern int ShowWindow(long, int);

win_get_info(\"{class: window, label: \"!WinRunner.*\"}\", \"handle\", handle);

switch(action)

{

case \"SW_MINIMIZE\" :

{

# Maximizing WinRunner

ShowWindow(handle, SW_MINIMIZE);

wait(2);

break;

}

case \"SW_MAXIMIZE\" :

{ # Maximizing WinRunner

ShowWindow(handle, SW_MAXIMIZE);

wait(2);

break;

}

}

unload_dll(\"user32.dll\");

};


By:UMANG
Date:2002-02-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related TESTING Subjective Links

TESTING Subjective interview questions and answers for experienced and fresher