38

This is the same concept as the first sandbox.

Why do we need more than one? This is in order to test the API, some methods support vectored ids (for example /questions/id1;id2/comments) and for that two sandboxes are needed.

enter image description here

3
  • 2
    This is an edited comment.
    – Glorfindel Mod
    Nov 26, 2020 at 19:34
  • Test comment by the "Try It" section in documentation
    – MrMythical
    Feb 1, 2022 at 18:08
  • Finally, my comment works! I've been trying for some time with my own code
    – MrMythical
    Feb 2, 2022 at 14:59

37 Answers 37

13

How can you test a question w/out an answer?

4
  • 7
    Test comment... beep! Jul 25, 2010 at 20:12
  • does this change the last update?
    – Glenn Bech
    Oct 2, 2011 at 23:27
  • This comment was posted with version 2.1 of the API. Jul 20, 2012 at 4:22
  • This is the second comment posted with, well, you get the idea. Jul 20, 2012 at 4:41
8
+50

This is a test, for an API, sort-of.

5
  • 6
    I'd rather commit a quick fraudulent bounty transfer than flood the home page by bumping a bunch of questions with pointless minor suggested edits. I'm trying to give this account 20+ rep so it can test the MSE chat. Apr 28, 2014 at 22:28
  • 1
    truly, this is exemplary
    – mhlester
    Apr 28, 2014 at 22:35
  • 7
    Wait, how can a bounty be awarded to a community wiki post?
    – Stevoisiak
    May 7, 2017 at 13:43
  • @Stevoisiak Because somebody posted a bounty. They will lose that amount of rep when the bounty is started, but then of course the scheme to transfer those points to their sock puppet bot account didn't work because of the CW.
    – tripleee
    Jun 9, 2023 at 3:59
  • I stand corrected. Just now, I earned a bounty on a CW answer.
    – tripleee
    Jun 10, 2023 at 10:10
5

This is a dummy answer to test the API!



3
  • here is another dummy comment! Jul 29, 2012 at 15:31
  • comment comment comment Aug 18, 2012 at 23:17
  • another test comment Aug 20, 2012 at 16:27
3

Spec for Client with random 646713442; this is part of StackExchangeApiClient tests.

3

Heading 1

Headign 2

Heading 3

Another API answer to test the might of Stack Exchange code

Code stuffs: hehe ~~,ml,mn~~


alert('hehehe')
h1 {
  color: red
}
<h1>Test snippet!</h1>
<ul>
  <li>Hello</li>
  <li>Hello there</li>
</ul>


asdfa dfasd f test

Other stuff

2

I guess I have to answer this to test my cool Android app.. :-)

0
2

YET Another test answer for testing purposes

2

?

​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

14
  • 1
    @Lix Ok fine THIS ---> ‮҉ – qwertynl 1 min ago
    – Lix
    Dec 23, 2013 at 20:16
  • ever plan on revealing how you do that!?? :P May 27, 2015 at 15:11
  • @ᔕᖺᘎᕊ - Are you talking about the actual post or the comment? :P
    – Lix
    May 28, 2015 at 9:04
  • 1
    the comment :) I can see how you did the post! May 28, 2015 at 11:26
  • Ok fine THIS ---> ‮҉ – qwertynl 1 min ago May 28, 2015 at 11:27
  • WAIT WHAT?? @Lix I DID IT! May 28, 2015 at 11:28
  • @ᔕᖺᘎᕊ - hehe... yes. There is a special unicode character in there (non printable so you don't see it) that mirrors/flips text.
    – Lix
    May 28, 2015 at 11:28
  • cool! Thanks :) THAT IS COOL! :) May 28, 2015 at 11:29
  • @ᔕᖺᘎᕊ There are lots of tools out there to do this kind of thing for you. For example: twiki.org/cgi-bin/view/Blog/BlogEntry201211x1
    – Lix
    May 28, 2015 at 11:29
  • thanks for the link :) You can see my my username I like fiddling with these kinds of things :P May 28, 2015 at 11:29
  • @ᔕᖺᘎᕊ In that case you'll probably like this one: marlborotech.com/Zalgo.html If you haven't already seen it around the site :) Specifically this post
    – Lix
    May 28, 2015 at 11:31
  • @ᔕᖺᘎᕊ - zero width characters is how my post here is only "one" character
    – Lix
    May 28, 2015 at 11:32
  • 1
    yeah i've seen that - it took my ages to find out what it was tho! And yeah - I though so :) May 28, 2015 at 11:32
  • @ᔕᖺᘎᕊ Stack Exchange is pretty tolerant of unicode shenanigans... but just don't abuse the power :P As you can see, comment sections can get pretty unruly.
    – Lix
    May 28, 2015 at 11:33
2

another test answer for me to test with? Test edit /community

2

Spec for Client with random 780718851; this is part of StackExchangeApiClient tests.

1
  • Test Comment for Editing 2
    – AVK
    Sep 3, 2018 at 21:47
2

Spec for Client with random 409371460; this is part of StackExchangeApiClient tests.

2

This is a test of MathOverflow's new interface to Zentralblatt.

// Run a search
function runSearch() {
    goBack();
    $('#popup-cite .search-spinner').removeSpinner().addSpinner();
    $.getJSON('https://zbmath.org/citationmatching/mathoverflow', { 'q': 'planar algebras' }, fetchCallback);
}

// Callback to run when search completes.
function fetchCallback(response) {
        
        var html = $('<div class="list">');
        for (var i = 0; i < response.results.length; i++) {
            var result = response.results[i];
            var zbl = 'https://zbmath.org/?q=an:' + result.zbl_id;

            var link = result.links.length > 0 ? result.links[0] : '';
            var arxiv = '';
            for (var j = 0; j < result.links.length; j++) {
                     arxiv = result.links[j].includes("arxiv") ? result.links[j] : arxiv;
                }
            var authors = sanitizeForDisplay(result.authors);
            var title = sanitizeForDisplay(result.title);
            var citationHtml = sanitizeForDisplay(result.source);

            var result = $('<div class="item" style="float:none;padding:5px">')
                .html($('<div class = "summary post-link" style="float:none;width:auto;font-weight:bold;">')
                    .text(title))
                .append('<br/>')
                .append($('<span class="body-summary" style="float:none"></span>')
                    .append(authors + '<br/>' + citationHtml + '<br/> Preview (opens in new tab): ')
                    .append(renderOptionalLink(link, 'article'))
                    .append(renderOptionalLink(zbl, 'zbmath'))
                    .append(renderOptionalLink(arxiv, 'arxiv'))
                )
                .click(loadResultCallback(link, result))
                .hover(function () { $(this).css('background-color', '#e6e6e6') }, function () { $(this).css('background-color', '#fff') });

            html.append(result);
            result.find('a').on('click', function(e) { e.stopPropagation(); });
        }
        $('#results').html('').append(html);
        MathJax.Hub.Queue(['Typeset', MathJax.Hub, 'results']);
        $('#popup-cite .search-spinner').removeSpinner();
}

function getCitationHtml(json) {
  var arxiv = '';
  for (var j = 0; j < json.links.length; j++) {
    arxiv = json.links[j].includes("arxiv") ? json.links[j] : arxiv;
  }
  var cite = $('<cite>').attr('authors', json.authors)
          .append('_' + json.authors + '_, ')
          .append('[**' + json.title + '**](' + encodeURI(json.links.length > 0 ? json.links[0] : '') + '), ')
          .append(json.source + ' [ZBL' + json.zbl_id + '](https://zbmath.org/?q=an:' + json.zbl_id + ')')
          .append(arxiv ? ' [arXiv:' + arxiv.split('/').pop() + '](' + arxiv + ')' : '')
          .append('.');

  var citeContainer = $('<span></span>').append(cite).html();

  return citeContainer;
  }


// MathJax stub
var MathJax = {Hub: {Queue: function(arr) { }}};


// stubs
function sanitizeForDisplay(html) {
    return html;
}
 
function goBack() { }

function renderOptionalLink(href, text) {
    if (href) {
        return $(sanitizeForDisplay($('<a>').attr('href', href).text(text + ' ').prop('outerHTML'))).attr('target', '_blank');
    } else {
        return '';
    }
}

function loadResultCallback(link, result) {
  return function() {
    var html = getCitationHtml(result);
    $('#link').html('').append(html);
  }
}

$.fn.extend( { removeSpinner  : function() { return this; } });
$.fn.extend( { addSpinner  : function() { return this;} });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="testcases">
  <button onclick="javascript:runSearch();">Search "planar algebras"</button>

</div>

<div id="results">
  No results yet.
</div>
<div id="link">
  No link yet.
</div>
</div>

0
2

Another test answer for testing purposes

0
2

some more testing with this answer......

testing here: edit answer

asdasdas

6
1

enter image description here

1
  • 2
    _______________|
    – user697004
    May 10, 2017 at 9:49
1

This answer is a test

Formatting: codeblock,

link,

bold

Big codeblock:

console.log("codeblock works") // test comment in codeblock
1
  • This comment has been edited
    – MrMythical
    Feb 2, 2022 at 15:43
0

comes to his because spent 4 weeks says abstains murky buddy

2
  • comments are very bad Mar 29, 2012 at 0:40
  • never been better Mar 29, 2012 at 0:40
0

Just testing - body must be at least 30 characters

2
  • 1
    ­­­­­­­­­­­­­­­ May 26, 2017 at 20:09
  • 1
    Comments must be at least 15 characters, as you can see above. May 26, 2017 at 20:10
0

Spec for Client with random 1525546784; this is part of StackExchangeApiClient tests.

0

Spec for Client with random 1314354391; this is part of StackExchangeApiClient tests.

0
0

As workaround you can set 'DefaultSenderID'

#!/usr/bin/env python

import boto3

s = boto3.Session(profile_name='Godzilla')
sns = s.client('sns')

sns.set_sms_attributes(
    attributes={
        'DefaultSenderID': 'Godzilla',

    }
)

response = sns.get_sms_attributes(
    attributes=[
        'DefaultSenderID',
    ]
)

print(response)
1
  • Test for comment. As workaround you can set 'DefaultSenderID' <!-- language: lang-py --> #!/usr/bin/env python import boto3 s = boto3.Session(profile_name='Godzilla') sns = s.client('sns') sns.set_sms_attributes( attributes={ 'DefaultSenderID': 'Godzilla', } ) response = sns.get_sms_attributes( attributes=[ 'DefaultSenderID', ] ) print(response)
    – tuxar
    Nov 30, 2016 at 20:12
0

Hello World :) :)Testing answer API (https://api.stackexchange.com/docs/create-answer)

0

Hello World :) :) Testing a sample comment

0

Yet another test answer for testing purposes

0
0

Test, please ignore it.

Blah, blah .. blah?

0

Hello World :) :) Testing a sample answer. Testing Editing answer now.

Update: Now I am testing Editing on Answers.

Update: 2nd Attempt

Update: 3rd Attempt

Update: 4th Attempt

Update: Final Attempt to Test Editing

Update: 2nd Final Attempt to Test Editing

NavigationCacheMode="Enabled"

Done Testing. Last Testing. Navigation Back Final Testing.

Update: Testing after long time to make sure app still works.

0
0

Another test answer for testing purposes.

Now Editing a Old Answer to check from API If it works....

3
  • 1
    hi @ChuckBatson
    – Chuck Test
    Jan 12, 2015 at 14:53
  • hi there @ChuckTest Jan 12, 2015 at 15:43
  • things are well here @ChuckTest thanks for asking Jan 12, 2015 at 16:59
0

This answer is intentionally locked, should you need to test what happens if you try to vote on/edit/comment on a locked post.

0

This is my dummy answer, containing a link to the AspectJ 1.8.4 release notes.

Another line was added.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .