0% found this document useful (0 votes)
4 views2 pages

Java HTTP Methods Utility Class

The document outlines a Java project structure with directories for source code and test resources. It includes a utility class for HTTP methods (GET, POST, PUT, UPDATE, DELETE) and a method for generating user data. Additionally, it references configuration files and test data formats such as JSON and Excel.

Uploaded by

dinakarang0909
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Java HTTP Methods Utility Class

The document outlines a Java project structure with directories for source code and test resources. It includes a utility class for HTTP methods (GET, POST, PUT, UPDATE, DELETE) and a method for generating user data. Additionally, it references configuration files and test data formats such as JSON and Excel.

Uploaded by

dinakarang0909
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

src/main/java

src/[Link]

src/test/java

Utility-Class HTTP methods


static

Get
Post
Put
Update
Delete

Payload
respon rget post(){

.Respone

public object [][] useripts(){

List<Map<String, Object>> users= new ArrayList<>();

for(int i=0;i<=[Link]();i++){

Map<String, Object> user= new HashMap<>();

[Link]("FistName", "user"+i);
[Link]("LastName", "user"+i);

[Link](user);

@Test(dataProivder="useripts")

return new oBJECT [[][]


{USERS}

punlic void createUser(List<Map<String, Object>){

.post(users)

src/test/resouce

[Link]

[Link]

Output

resolut

testNg/xml

testdata.
.excel file

XSSF Wrokfile

You might also like