Ask a Question

Framework in 12 mins

shankar_r
Community Hero

Framework in 12 mins

I have a created a video which will demonstrate how to create a worth framework inside 15 mins. checkout


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

12 REPLIES 12
TanyaYatskovska
SmartBear Alumni (Retired)

I like it!

I'm sure it will help many new testers who think of how a testing framework should look like, where to get started to create a useful framework, etc. Thanks for preparing such a great video and sharing it with us!

 

More videos will come soon? 🙂

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



karkadil
Valued Contributor

Hi Shankar,

I'd like to criticize a little here.

1. The quality of the video is really bad. It is almost impossible to see the code, even though I watch the video in the best quality YouTube suggests me (720p). This is the reason I stopped watching the video after 5 mins. I'm attaching a screenshot of what I see on the screen.

2. There are some voices on the background, probably from your colleagues. It really annoys, such videos should be recorded in silence, e.g. in an empty room.

3. Using eval function isn't recommended in JavaScript, it complicates debugging. And you use eval on the high level, wrapping the whole code executed (see for instance, answer on StackOverflow ).

 

My general impression - I wouldn't recommend using this video as a tutorial, especially for novices

Thanks, Gennadiy for the valuable suggestions, This is my first ever YouTube video so It should have some pitfalls. I will try my best on the next video so the user can enjoy learning!

 

@karkadil wrote:

3. Using eval function isn't recommended in JavaScript, it complicates debugging. And you use eval on the high level, wrapping the whole code executed (see for instance, answer on StackOverflow ).

I agree with what you are saying but eval is not recommended in JavaScript but It's been working for me for the past 5 years and I'm able to debug the code. We have another possibility which is Runner.CallMethod may we can replace the eval by that. Eval  basically restricted for security concern which is not applicable in Automation scripting.  

Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available


@TanyaYatskovska wrote:

More videos will come soon? 🙂


Thank you @TanyaYatskovska , I'm in progress of creating few more videos on the TestComplete frequently used functionalities. Smiley Happy 


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

@karkadil  Replaced with new video check out


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

karkadil
Valued Contributor

@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? 🙂

karkadil
Valued Contributor


@karkadil wrote:

P.S. Have you changed your voice? 🙂


Voice is Microsoft Mark voice (text to speech Smiley Tongue)

 

Runner.CallMethod was obsoleted way back in 2013 but It is still supported in TestComplete.

https://community.smartbear.com/t5/TestComplete-Functional-Web/Why-Runner-CallMethod-is-obsolete/td-...

 

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.


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

tristaanogre
Esteemed 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]();

}

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: