Forum Discussion
shankar_r , starting from 10:30 the video has some creepy audio and video artifacts.
Also, it is a good idea to enlarge the font size, but it looks like you changed the tool for screen recording. It is focusing on currently active controls (or current mouse position, or something else). As a result, sometimes it is difficult to understand, where and why the focus moved.
Probably it would be better to use lower resolution to record the video, but always record the full screen.
P.S. Have you changed your voice? :)
- karkadil6 years agoValued Contributor
BTW, using Runner.CallMethod is also not recommended as it is obsolete :)
- shankar_r6 years agoCommunity Hero
karkadil wrote:
P.S. Have you changed your voice? :)
Voice is Microsoft Mark voice (text to speech :smileytongue:)
Runner.CallMethod was obsoleted way back in 2013 but It is still supported in TestComplete.
So, Here is the question. I want to read the function from excel and somehow I need to execute that function in TestComplete. Could you please let me know a good way to do this. I really need a standard way of doing this.
- tristaanogre6 years agoEsteemed Contributor
What if you leveraged some JavaScript in some way? Instead of doing some sort of eval or callmethod for the funciton, what if it was class/method? And you would, as part of your execution, call the "require" keyword to bring in the exported class and then execute the method? Something like this.
function (className, methodName){ let localClass = require(className); let localOBject = new localClass(); localObject[methodName](); }
- karkadil6 years agoValued Contributor
I want to read the function from excel and somehow I need to execute that function in TestComplete. Could you please let me know a good way to do this. I really need a standard way of doing this.I understand what you are trying to achieve. AFAIK there is no way to do this except for 2 ways you have already tried (eval and Runner.CallMethod).
I just don't understand why you implement such a difficult solution? Why not using TestItems?
- shankar_r6 years agoCommunity Hero
I have around 1500+ test cases, all these test cases run by filters based on the command line parameters. each test case has a module, environment, release version. Based on the command line parameters test cases will get filtered with what module we are running based on the module, environment, and release.
I'm achieving this using ADODB query where I can form a where clause by these values. I believe this situation can't be handled dynamically using the TestItem. If there is a way please suggest.
Related Content
- 4 years ago
Recent Discussions
- 13 hours ago
- 7 days ago
- 10 days ago