Forum Discussion
18 Replies
- rraghvaniChampion Level 3
I'm unable to "share" the PowerShell script file. However, these are some of the commands that I use within the script.
File repository - to download the latest source files
TestExecute - runs the automation and generates results in XML. The timestamp is used for historical results
Parsing XML results into HTML report, see https://stackoverflow.com/questions/56056313/xml-parsing-using-powershell.
Sending HTML report email, see https://stackoverflow.com/questions/63334948/how-to-send-an-email-with-an-attachment-in-powershell-code
- rraghvaniChampion Level 3
I've just recorded the following keyword test,
Using TC v15.51.30.7 x64 and Chrome v113.0.5672.127 (Official Build) (64-bit)
- TK6666Contributor
Thanks for confirming, I am really running out of ideas here as to why i am experiencing so many issues after new releases and the support guys are still investigating.
- rraghvaniChampion Level 3
Do you have these three processes running?
- TK6666Contributor
- rraghvaniChampion Level 3
Have you tried creating a new project, to see if recording works?
- rraghvaniChampion Level 3
It seems like your project is stored on OneDrive? This could be causing synchronisation issues.
Could you try to copy your project on your local drive e.g. C:\Sandbox or C:\Temp, and try to record your keyword/script test again.
- rraghvaniChampion Level 3
I'm assuming your project is called WHClient?
Copy WHClient to a different folder other than OneDrive. Ensure you are using some sort of file repository system - see Integration With Source Control Systems for suggestions.
- rraghvaniChampion Level 3
I've had issues with OneDrive as well. I do all my development work on my local drive, i.e. not using OneDrive, and never had issues.
- TK6666Contributor
okay thank you for that.a developer helped me set up that part s that test execute which sits on my virtual machine is able to pick up this folder and run the tests.He thought at the time that this was the best way to assist with the the bat file.
would i just need to copy and past the filder in another location that does not have one drive in it/linked to one drive?
- rraghvaniChampion Level 3
My project sits in this location.
Copy and past your project, to a local folder.
- TK6666Contributor
okay thank you.I will do that.
And then your bat file that is used to execute the tests its it just named accordingly?
- rraghvaniChampion Level 3
I do the development on my local machine. All files, excluding pictures, are uploaded and checked-in into TFS (file repository).
On my remote machine, I have a PowerShell script file (similar to a batch file) that runs on a scheduled task. The script downloads the files from TFS and runs TestExecute (runs the automation). Once completed, results are then sent via email.
Related Content
- 12 years ago
- 4 months ago
- 3 years ago