Ask a Question

Configure IE11 before running a TestComplete script

jkrolczy
Frequent Contributor

Configure IE11 before running a TestComplete script

I am querying the forum to see if someone has ever write a script to preconfigured IE11
before executing their scripts.

 

Probably WinReg changes ???

 

  i.e. Tools -> Internet Options
     open in new tab versus a new IE window

Thanks,

JamesK

JamesK
5 REPLIES 5
tristaanogre
Community Hero

Re: Configure IE11 before running a TestComplete script

I can't speak for everyone else...

 

But what we do is we have VM's that are set up as "clean rooms".  They are built off a template which we have configured with all the software set up with proper settings, machine policies, etc.  So, when we need a new VM to run automation against, we spin up a new clone and everything is set and configured.  I don't, personally, like the idea of having the automation code itself do the configuration as that is just one more thing to write and maintain code for.  Better to have the environment get deployed and run the automation against a known deployment...

 

BUT... YMMV... others may have other opinions but this is what we do.


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
cunderw
Community Hero

Re: Configure IE11 before running a TestComplete script

I'll second this, have your automation assets actually configure your browser opens up the possibility of false positives in your tests. You're testing how your application behaves in IE, not IE itself so it doesn't make sense to do that configuration from your tests. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Marsha_R
Community Hero

Re: Configure IE11 before running a TestComplete script

I don't object to using TC to do some setup, because there have been some cases where we couldn't get a VM deployed in the time that we needed the tests run.

 

That being said, the setup tests are not part of the main test suite.  They are separate and only run when needed.   


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
jkrolczy
Frequent Contributor

Re: Configure IE11 before running a TestComplete script

Marsha,

 

What methods were used to pre-config IE before running scripts.

 

Win Reg changes ?

 

JamesK

JamesK
Marsha_R
Community Hero

Re: Configure IE11 before running a TestComplete script

All of our setup is the same as if a user had completed the steps manually.  You can always walk through it in a recording and then clean up the resulting test afterwards.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: