How to export 3D plot, without losing the specified view of rotation?

What is stored in variable x is different from rotated object you have in output cell. You rotated - so you changed the properties. Many ways to do this - so in addition to comments' methods...

1) In-Export rotation

enter image description here

2) Seeing options

enter image description here

Export["test.png", Show[x, opts]]

To save a PNG of a plot or graphics expression, I avoid Export. I select the displayed output and click on the Save Selection As ... item on the File menu. This will save the selected output exactly as it appears on the display.

saving-plot