The whole thing was a test. The ship and rocket themselves would always have been scrapped afterwards, and the goal of the whole endeavor was to get back as much data as possible.
They succeeded in launching the rocket, having it take off and reach max-Q and got valuable data on all that. That's the successful part. They also learnt some hard lessons on launch pad construction.
Then the ship failed and the test was aborted - and they never got to test stage separation, which they had planned to do as well. That's the unsuccessful part.
So, did they get the data they wanted? Not all they wanted - but an important chunk of it.