5

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.

Community
  • 1
  • 1
Guy Smith
  • 178
  • 1
  • 12

4 Answers4

11

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.

Lipis
  • 21,388
  • 20
  • 94
  • 121
Vishal Biyani
  • 4,297
  • 28
  • 55
  • Check "Domains" section of article: http://cloudspring.com/understanding-google-app-engine-gae-java-api-part-1-landscape-overview – Vishal Biyani Dec 18 '11 at 03:05
  • For Live URLs of various versions check http://tinypic.com/r/zvocr6/5 and for changing the XML file so you can upload your codebase to a specific version check: http://tinypic.com/r/2vvurmd/5 – Vishal Biyani Dec 18 '11 at 04:43
  • Hi, Can different version have access to the the different data? For example i want that the version 2 of the app engine should access different data set and version should access different data set. – Shajeel Afzal Sep 24 '15 at 11:49
  • @ShajeelAfzal AFAIK - the data can not be different, only app code can be. And if you are using object entities (NoSQL) data - then you can always maintain version number on your entities to achieve different data being accessed by different versions of app – Vishal Biyani Jan 04 '16 at 06:33
6

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.

stivlo
  • 83,644
  • 31
  • 142
  • 199
  • 1
    +1 good answer and followup question. What is the best approach to separate the data from the debug version and the live one? – Jonny Apr 22 '14 at 10:04
  • Thanks you so much for the clearly telling that the the same datastore will be used, @Jonny i think new project can be created on Google Developer console and then changing the application-id in the code will do work. – Shajeel Afzal Sep 24 '15 at 11:52
3

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
tomrozb
  • 25,773
  • 31
  • 101
  • 122
0

In the menu there is section Main > Versions and there you can choose the version then "Make default". Of course to have more than one version available there you have to change the version before deploying(as far as I remember you can do this in one of xml files).

Or you mean to have default version, but test another one?

f1ames
  • 1,714
  • 1
  • 19
  • 36
  • Not adding a vote down, but it's not necessary to make version default for testing. You can keep your default version and test other versions at the same time, check my answer – Vishal Biyani Dec 18 '11 at 03:04