I have been doing the postman training. So, how to solve this error?
I tried solving the error by checking each variable, query or something but nothing works.
Related
I'm trying to use Execute XPath Function in automation anywhere.
In the response I'm getting the value as "MS.Internal.XML.XPath.XPathSelectionIterator"
XPath looks like :
//GetEmployees/Employee/text()
I'm sure that xpath is correct since I have tested with Java code.
Looks like the control is returning an object instead of text string.
Is there a way we can do it ?
Got the answer to this one by trial and error.
Was trying to parse soap response and I believe it was facing an issue with namespace.
got wit working by using the following expression
string(//soap:Envelope/soap:Body/*[name()='GetEmployees']/*name()='Employee'])
Hope this helps and some one could improve it further.
I'm back here since I'm working with Laravel and Backpack and I'd need to limit the wildcard reaching in order to prevent that catches requests that wouldn't have to catch.
Well, I've the following code:
Route::prefix('/{type}/')->group(function() {
CRUD::resource('members', 'UserCrudController');
})->where('type', '[practice|expert|basic|all]');
The fact is that I'm getting the following error:
Call to a member function where() on null
I know what and why is happening but I don't know how is the way to achieve the expected behavior.
Thank you a lot for the time!
I’m trying to use the MailChimp - Search Members function. I want to use this action as a general search for retrieving members from all lists which match a query.
When I try the URI as formatted in the example:
https://us13.api.mailchimp.com/3.0/search-members?query=freddie#
I get the following error:
{"type":"https://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid Resource","status":400,"detail":"An error occurred: Sorry, we're unable to search at the moment.","instance":""}
If I leave out the query parameter I receive the following error:
{"type":"https://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid Resource","status":400,"detail":"Please provide 'query' parameter in the query string to search","instance":""}
So the method is available and my request URI is being parsed.
I conclude that the query parameter is incorrectly formed, however after extensive research I cannot find out how to format the query parameter.
This was an issue at Mail Chimp.
If you get it make a GET call to your root url e.g.
https://us13.api.mailchimp.com/3.0/
And send them your account Id along with the issue.
They can then reindex your lists.
Thanks anyone who invested time in this issue
See reply below.
J (MailChimp)
Jul 24, 5:49 PM EDT
Hey Dev, thanks so much for providing that info. I found the account and was able to replicate the error you are seeing - looks like it's account specific.
I reindexed your lists and then was able to make the same call successfully this time. If you do ever run across this issue again, that is likely what is going on. Shooting us an email or jumping in chats with this request will get it resolved in no time :)
Let me know if you are still experiencing that same error when making this call and I'll be happy to take another look, but you should be good to go at this point. Hope all is well, and have a great rest of your week!
============================================
I am frustrated by my failure to get a simple IF statement to trigger and am begining to suspsect that I do not understand the way IF statements are implemented in JMeter.
What I am trying to do is query an API that returns 202 responses while it is processes a request, then returns a 200 when the results are returned. Finally a 404 is returned if I query again after getting the results.
I have a while controller with no condition that performs this query and it exits on the 404.
This seems to work OK.
What I want to do is confirm that I have valid JSON returned for the 202 and the 200 but ignore the 404.
I thought I could add an IF controller after each query in the loop to run a a BSF assertion when I have 202 or 200 but I cannot seem to get it to work. Even if I put in "true" or "1 == 1" as the condition the assertion is never called.
"${httpCode}" == "200"
In my assertion I have added a deliberate error "eval x;" that causes the assertion to fail if I drag and drop it to other parts of the suite -
try {
eval('var response = ' + prev.getResponseDataAsString());
eval x;
} catch(e) {
prev.setSuccessful(false);
prev.setResponseMessage("Invalid response. Expected a valid JSON.");
}
Like I said, even if I add true or 1 == 1 the assertion error never shows in the assertion results. Am I fundamentally misunderstanding the way the IF controller works? Certainly the Java programmers I work with cannot see what is wrong here.
Unfortunately this site won't let me post an image of the suite...
BTW
Sorry for asking a "vague" question but I have been evaluating JMeter for over a week now and find the online resources to be lacking in "How To" type tutorials. Lots of references to specific JMeter objects and basic "Getting Started" type posts but nothing detailed. Also most of the references seem to be circular and and out of date; I keep finding myself back at the same pages over again.
The apache site seems more geared up as an object reference.
Is anyone able to recommend a really good online resource?
What JMeter version do you have? In my ver.2.10 if controller with 1==1 works correctly.
Also I could recommend you to use If controller with JMeterThread.last_sample_ok function. It returns true in case previous sampler was ok.
You could use in as if condition.
Try the following:
${__BeanShell("${httpCode}".equals("200"))}
hey guys was hoping you could help me out..
i was asked to fix a query for someone which wasnt working. fixing the query is a rather simple problem, but i cant seem to be able to find where that query is located.i know php and mysql, but not really familiar with codeigniter framework.
any ways, the form which results in the query being called has
action="/support/managemyaccount/profile/search"
if you could help me figure which filethe query would be in it would be great.
The file should be called support.php, under the application/controllers folder.
Within that file, you should find only one class. Within that class, look for a method named managemyaccount. That's where your query is most likely to be.