cancel
Showing results for 
Search instead for 
Did you mean: 

Cache -Scripts using Cached Info

SOLVED
MarkSchofer
Contributor

Cache -Scripts using Cached Info

I have scripts that log to various applications and I notices they are logging as other users than that in the keyword script. 
Do I need to clean out the cache every time .....I have scripts to close the browsers but they seem to be ignoring the settings I have on the browsers..  

1 ACCEPTED SOLUTION

Accepted Solutions
MarkSchofer
Contributor

Re: Cache -Scripts using Cached Info

I have a Python Script that does this..  It logs out and closes all active sessions of a browser. I am not a Python developer but I can be fairly adept at figuring this out.  I re wrote it last night and it seems to be working better.  I am trying to not rely on users and trying to let my script(s) be smart enough.

Thanks for the reply.

View solution in original post

5 REPLIES 5
mikef
Staff

Re: Cache -Scripts using Cached Info

Hi @MarkSchofer 

 

Are you running these scripts on your local (or remote) machine where you have active sessions on these applications, or on a machine with no active sessions?

 

Closing the browser alone would not necessarily log you out of an application session, it sounds like you may need to logout of one session before running your script, so it can create it's own session.

MarkSchofer
Contributor

Re: Cache -Scripts using Cached Info

I have a Python Script that does this..  It logs out and closes all active sessions of a browser. I am not a Python developer but I can be fairly adept at figuring this out.  I re wrote it last night and it seems to be working better.  I am trying to not rely on users and trying to let my script(s) be smart enough.

Thanks for the reply.

View solution in original post

Marsha_R
Community Hero

Re: Cache -Scripts using Cached Info

@mikef is right.  Don't rely on closing the browser.  Log into your app and out of your app at the beginning and end of a test.

MarkSchofer
Contributor

Re: Cache -Scripts using Cached Info

This seems obvious however thanks for stating this. I am doing this manually each time.

Marsha_R
Community Hero

Re: Cache -Scripts using Cached Info

Lots of things that are obvious to me turn out to be steps that people are missing.  One never knows what's been done or not done when answering a question on here, so we start with easy and move up to more complicated.  

 

That being said, you can have the scripts open and close the browser instances fairly easily.   

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/index.html

New Here?
Join us and watch the welcome video:
Announcements