# Simulate user interactions

**URL:** https://discourse.slicer.org/t/simulate-user-interactions/10598
**Category:** Support
**Created:** [March 9, 2020, 1:18pm UTC](https://discourse.slicer.org/t/simulate-user-interactions/10598 "2020-03-09T13:18:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Yash\_Kumar\_Gumashta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yash_kumar_gumashta/32/4294_2.png) [@Yash\_Kumar\_Gumashta](https://discourse.slicer.org/u/Yash_Kumar_Gumashta)
#### Post date: [March 9, 2020, 1:18pm UTC](https://discourse.slicer.org/t/simulate-user-interactions/10598/1 "2020-03-09T13:18:55Z")

</div>

Hello Experts,

I am an IT professional who is trying to simulate a healthcare environment on a large scale and hence we are using software to simulate that workload on our systems, So I am basically trying to get 3D slicer to open up a nrrd file \>\> Go to “Volume Rendering” \>\> Click on Volume \>\> Select a Preset \>\> Change rendering to GPU \>\> look at the 3D image for 30-45 seconds and close the application.

I was able to automate the workflow using some scripts and automated mouse movements, the result is pretty decent ( You can watch the script in action @ [https://youtu.be/-DWZDO4e8ns](https://youtu.be/-DWZDO4e8ns) ) but I was curious to know if I can simulate these steps using only Python or only keystrokes.

Regards,  
A new guy in 3D Slicer world

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [March 9, 2020, 1:24pm UTC](https://discourse.slicer.org/t/simulate-user-interactions/10598/2 "2020-03-09T13:24:24Z")

</div>

There are several self-tests that perform complex workflows, including loading data, setting up various visualizations, and simulating keystrokes and mouse movement.

For example:

- [https://github.com/Slicer/Slicer/blob/master/Applications/SlicerApp/Testing/Python/RSNAVisTutorial.py](https://github.com/Slicer/Slicer/blob/master/Applications/SlicerApp/Testing/Python/RSNAVisTutorial.py)
- [https://github.com/Slicer/Slicer/blob/master/Applications/SlicerApp/Testing/Python/RSNA2012ProstateDemo.py](https://github.com/Slicer/Slicer/blob/master/Applications/SlicerApp/Testing/Python/RSNA2012ProstateDemo.py)
- [https://github.com/Slicer/Slicer/blob/master/Applications/SlicerApp/Testing/Python/RSNAQuantTutorial.py](https://github.com/Slicer/Slicer/blob/master/Applications/SlicerApp/Testing/Python/RSNAQuantTutorial.py)
