baan2bealive
19th March 2010, 00:55
What is the best way to go about creating a script that can simulate a common task done by a user (eg creating a work order)?

The purpose is to measure the elapsed time required to do this task as a method of measuring the systems performance of that task at any time.

There are software applications available that send keyboard commands and mouse x/y movements, but I was wondering if there was another alternative available using a script perhaps?

Thanks in advance

JaapJD
19th March 2010, 09:19
Writing your own script with stpapi calls (Application Function Server) can help you. There is a lot of information on this board about it. Just search on "Application Function Server".

baan2bealive
23rd March 2010, 23:44
Thanks!

I was able to open worktop with a test .bwc and launch a session.
But none of the other commands in the documentation seem to work...

Here is my code, any suggestions?
I am on Baan LN:


Dim BaanObj As Object
Dim OpenSessionCommand As String
BaanObj = CreateObject("Baan.Application.TEST")
BaanObj.Timeout = 10
OpenSessionCommand = "zoom.to.menu(" & Chr(34) & "whwmd2510m000" & Chr(34) & _
",2," & Chr(34) & Chr(34) & "," & Chr(34) & Chr(34) & ",0,0)"
BaanObj.ParseExecFunction("ottstpstandard", OpenSessionCommand)

example of commands in documentation that I cant get working:
stpapi.get.field
stpapi.put.field
stpapi.form.command

Thanks!