QTP is a very good automation tool and if you want to be QTP expert you need to know the VBScript properly. I thought to start helping testers by writing some useful VBScript programs.
Here is very basic level program for testers.
1. This program declare a variable dim var_name
2. Assign a value to this variable var_name = "This is my first QTP Program."
3. Print the value of this variable. document.write(var_name)
Program Code:
<html>
<body>
<script type="text/vbscript">
dim var_name
var_name = "This is my first QTP Program."
document.write(var_name)
</script>
</body>
</html>
Program output:
So now you can write a basic level VBScript program. Most of the testers afraid of QTP because they can not write a basic program.
0 comments:
Post a Comment