No, because the stress won't be fully reversed.
The rotating shaft fatigue test extracts data about the shaft material in a repeatable way, because the loading can be analyzed and controlled. For one thing, the rotation provides a controlled strain rate with no impact.
There is still a lot of scatter in the data, and it can be expensive to get enough data to be statistically significant.
With that data, and the math, one can estimate a fatigue life for other loading cases.
In your case, the stress associated with the oscillation per se should be computable. The extra stress associated with banging into hard stops is dependent on a lot of stiffness and inertia properties, and may not be so easy to compute.
For cases other than fully reversed stress, there are more than a few ways of estimating a fatigue life from the fully reversed stress data that's available, doing various machinations with stress range and mean stress and the phase of the moon.
All are subject to rather large inaccuracies, because of simplifying assumptions, the asymptotic nature of the material's S-n curves, scatter in the material test data, sensitivity to other influences like surface finish, notches, strain rate, chemical attack, and who knows what.
I.e., if you do it six different ways, you'll get six very different answers... probably all wrong. The only way to know the real answer is to suffer, investigate, and back- engineer a statistically significant number of field failures... and there are a lot of reasons why you want to avoid ever having that data.
Mike Halloran
Pembroke Pines, FL, USA