but it is not entering inside of this if(Spark.data.scriptData){}
somehow it always considering "(Spark.data.scriptData)" as invalid !!!!!!!!
can anybody provide some example code for testing in test harness?
Best Answer
T
Tech Support
said
over 4 years ago
Hi Ahsan,
I've copied your request and tried it in my test harness and it works as intended. Can you place this code at the top of your Cloud code and see if the data is actually available :
var test = Spark.getData();
1+1;
If you test the code in the harness debugger and move to the second line with 1+1 you should be able to see the 'test' object be created on the right hand side and will be able to see if your data is actually there.
Here's a demonstration:
Please double check this and get back to me, will be here to assist further.
I've copied your request and tried it in my test harness and it works as intended. Can you place this code at the top of your Cloud code and see if the data is actually available :
var test = Spark.getData();
1+1;
If you test the code in the harness debugger and move to the second line with 1+1 you should be able to see the 'test' object be created on the right hand side and will be able to see if your data is actually there.
Here's a demonstration:
Please double check this and get back to me, will be here to assist further.
Cheers,
Omar
a
ahsan muzaheed
said
over 4 years ago
i. sorry for late answer. i am in the transaction of moving to ane country. so a bit busy at the moment.
i placed the cloud code into aurthentication response filed instead of aurthentication request. since i found out the problem iwas not able to sit down with it. hopefully tonight i will have time.will inform u if i hvaing any poroblem.
thanks for your replay
Tech Support
said
over 4 years ago
You're welcome.
I hope your transition is most comfortable. Waiting to hear from you.
ahsan muzaheed
i was following this :
https://docs.gamesparks.com/tutorials/social-authentication-and-player-profile/automating-user-password-change.html
in test harness i am trying this:
but it is not entering inside of this if(Spark.data.scriptData){}
somehow it always considering "(Spark.data.scriptData)" as invalid !!!!!!!!
can anybody provide some example code for testing in test harness?
Hi Ahsan,
I've copied your request and tried it in my test harness and it works as intended. Can you place this code at the top of your Cloud code and see if the data is actually available :
var test = Spark.getData();
1+1;
If you test the code in the harness debugger and move to the second line with 1+1 you should be able to see the 'test' object be created on the right hand side and will be able to see if your data is actually there.
Here's a demonstration:
Please double check this and get back to me, will be here to assist further.
Cheers,
Omar
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstTech Support
Hi Ahsan,
I've copied your request and tried it in my test harness and it works as intended. Can you place this code at the top of your Cloud code and see if the data is actually available :
var test = Spark.getData();
1+1;
If you test the code in the harness debugger and move to the second line with 1+1 you should be able to see the 'test' object be created on the right hand side and will be able to see if your data is actually there.
Here's a demonstration:
Please double check this and get back to me, will be here to assist further.
Cheers,
Omar
ahsan muzaheed
i. sorry for late answer. i am in the transaction of moving to ane country. so a bit busy at the moment.
i placed the cloud code into aurthentication response filed instead of aurthentication
request.
since i found out the problem iwas not able to sit down with it.
hopefully tonight i will have time.will inform u if i hvaing any poroblem.
thanks for your replay
Tech Support
You're welcome.
I hope your transition is most comfortable. Waiting to hear from you.
Cheers,
Omar
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2486 topics