Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automation tests for gmail, rest api, soap ws #30

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

murashkoslava
Copy link

Hi guys,

Please review my example project for testing:
1.Testing rest api. (Rest api sen json) (articles: http://helpqaspb.com/restapi.htm)
2.Gmail testing example of tests.(articles: http://helpqaspb.com/test.htm )
3.Soap ws- simple test.(send xml and parse result. http://helpqaspb.com/soapui.htm)

Regards,
Slava

@murashkoslava
Copy link
Author

Apply all recommendations.

WebDriver driver = new FirefoxDriver();
driver.get(url);
driver.manage().window().maximize(); // maximize window
Thread.sleep(5000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try implicit wait instead

public static HttpResponse sendJSon(String url, String json)
throws ClientProtocolException, IOException, JSONException {
HttpPost request = new HttpPost(
"https://api.rest-test-app.com/users/add"); // meyhod post
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it a public API?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's example. I'm going to create rest api on site for trying

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please provide real URL for test, any existing public
Thanks

@murashkoslava
Copy link
Author

Sergey,

Thanks a lot for recommendation.

Regards,
Slava

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants