Ask a Question

Disable Certain Screenshots Taken in Keyword Test

SOLVED
benkurrek
Frequent Visitor

Disable Certain Screenshots Taken in Keyword Test

Hello, 

Is there a way to disable certain screenshots from being taken within the keyword test scripts? Below I have two screenshots that are automatically being taken and I was wondering if there was some option to enable / disable a specific screenshot. 

benkurrek_0-1614350557600.png

benkurrek_1-1614350654248.png

Thanks so much! 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
hkim5
Staff

Re: Disable Certain Screenshots Taken in Keyword Test

this is almost directly related to the accepted solution of https://community.smartbear.com/t5/TestComplete-General-Discussions/Disable-taking-screenshot-with-O...

in order to use the script solution provided within the docs

Options.Visualizer.CollectMode = vcmOff    # Disable Test Visualizer
Options.Visualizer.CollectMode = vcmImgObj # Enable Test Visualizer, save both images and object data

you would drag and drop the "run code snippet" operation into the place just above the operation where that screenshot you dont want is taken, and provide the first line you see above

then you would drag another "run code snippet" operation just below the end of the operation that you dont want screenshots taken for, and put in the second line provided above.  

Best,
Justin Kim

View solution in original post

1 REPLY 1
hkim5
Staff

Re: Disable Certain Screenshots Taken in Keyword Test

this is almost directly related to the accepted solution of https://community.smartbear.com/t5/TestComplete-General-Discussions/Disable-taking-screenshot-with-O...

in order to use the script solution provided within the docs

Options.Visualizer.CollectMode = vcmOff    # Disable Test Visualizer
Options.Visualizer.CollectMode = vcmImgObj # Enable Test Visualizer, save both images and object data

you would drag and drop the "run code snippet" operation into the place just above the operation where that screenshot you dont want is taken, and provide the first line you see above

then you would drag another "run code snippet" operation just below the end of the operation that you dont want screenshots taken for, and put in the second line provided above.  

Best,
Justin Kim

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: