Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing uploaded app, other than default version

Can you test an uploaded version of an app, other than the "default" version?

I'm told it can be: WoLpH Google App Engine version numbers?

But I can't find it in the dashboard or the doco.

like image 655
Guy Smith Avatar asked Dec 17 '11 23:12

Guy Smith


3 Answers

If the version of app is 2 and your app URL is appname.appspot.com then URL 2.appname.appspot.com will give you access to version 2 of your app.

like image 56
Vishal Biyani Avatar answered Nov 05 '22 11:11

Vishal Biyani


As Vishal already said correctly (+1), you can prepend the version identifier to your url, so if your version is "version", the URL will be version.appname.appspot.com (app versions are strings, not numbers, although the string "2", is perfectly ok too).

To select another version from the Dashboard, just select the main application first, then use the second dropdown at the top of the page to select the version. This will show you the dashboard of another version, without changing the default (active) version.

where to select a version

Important considerations to keep in mind:

  • However, the main gotcha that I would like to mention, is that you're using the same Datastore of the live version. This can be a good thing, if you want to browse your application, but is not very recommendable if you want to insert test data that could potentially mess the public view.

  • You're also using the same task queues and cron, so you've to be careful of unintended consequences, should your application version update them.

If the problems mentioned above are important to you, you may consider to deploy another application to use for testing instead. In this way you'll be completely separated by the live environment.

like image 29
stivlo Avatar answered Nov 05 '22 10:11

stivlo


Note that double wildcards for appspot.com are no longer supported (*.*.appspot.com). To test different version than default use version-dot- prefix.

appname.appspot.com          // default
2-dot-appname.appspot.com    // version 2
like image 3
tomrozb Avatar answered Nov 05 '22 11:11

tomrozb