I have an application that creates Works Orders, that all have unique numbers
I can open the Work Order and Copy the number into the list of Orders on the orders main screen to search for it, but it pastes the exact text node into the field every time and stores that value in the keyword test. I want the keyword test to just paste the last number copied, and not store it as fixed value
I copy the text from the header of the job and then paste it into the list of jobs screen
I just really need to know what I’d put in the set text field, so that it pastes the text I’ve copied, which can be different every time as every order has a unique number
Originally posted by rraghvani on September 22, 2026
I can now see, that you are doing a Ctrl+C, to copy the selected text, followed by a Ctrl+V to paste the text. What is the SetText used for?
You need to mimic user behaviour i.e. highlight the text; press ctrl+c to copy the highlighted text; navigate to the desired text control and click it; then press ctrl+v to paste the text.
Once again thanks for the reply but I can’t see a way of the variable being the contents of the clipboard, and without that, don’t see how I do it, the test is locate a job using the clipboard contents. I’ll just have to accept it can’t be done
I’ve copied your text response, which is stored in the clipboard. I assign the vairable to the clipboard object, then using log to output the contents of the variable. Which displays the text that I had copied.
Originally posted by rraghvani on September 24, 2026
You are assigning the string value “Sys.Clipboard” to Var1, which is incorrect. You need to assign the object property of Sys.Clipboard to Var1. Anything in double quotes is considered to be a string.
Look at the screenshot example that I have provided.
Thanks again, but I don’t know how to do that. I do not know how to change the value to assign the object of Sys.Clipboard to Var1. There are no options to enter Sys.Clipboard as an object. I’m way out of my depth.
I don’t know what to pick at all when I choose set Variable value
Originally posted by rraghvani on September 24, 2026
I highly suggest you learn the basics, and fully understand how Object Identification works with TestComplete. Otherwise, it’s going to be very tricky!
Originally posted by scot1967 on September 24, 2026
Hi, when I was new to all this Record Keyword Test was useful. It didn’t always make the cleanest purpose built test but I was able to learn a lot of things like this by recording and then studying the output. If this isn’t what you are currently doing it might help expose and explain some of the things you are having trouble with. If this is what you are doing then you need to learn how to use variables like rraghvani said. Without that basic skill you wont be able to do much more than take what TestComplete hands you.
… If you find my posts helpful drop me a Like Be sure to mark the post as the Solution when you get one to help others out and to credit the one who helped you.
I’m most grateful for you trying to help, there wasn’t any need to, so that is very much appreciated, I think I’m going to look at other automation tools now.