If you have little in the way of measurement equipment to characterise the solenoid against its load (and you don't want to try to simulate it in s/w) then a simple test is to get some capacitors, put them in place after your power supply, but put a large value resistor upstream of the capacitor. That resistor will allow the capacitor to "trickle" charge up to the supply voltage, but not allow a large current spike.
You can also simply measure the voltage across that resistor to estimate the current being pulled from it
By messing around with the size of the capacitor and resistor, you can find the sweet spot, in terms of supplying enough energy to 'fire' the solenoid against its load (what its load actually is is quite important of course, and who much energy the load takes to move, or MAY take to move, ie does the load change?)
For example, for a 12v supply, a 24 ohm resistor will limit the absolute max current flow to 500mA, even with the output shorted to ground.