ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Really Helpful, looking forward to more videos like this for performance and API testing.
Good job Mr. Software test warriors , Thannks for a hardwork for us
It's my pleasure
This is very informative video which helped.
Nice information.
Good for QA beginners
Can you share same videos for SQL server & posgress ...it will be really helpfull
Sure will post in few days
Awesome video ,it helped in database performance testing.
Glad to hear that
Hi, how to connect with mongodb.
Hi pratheep for mongo DB connection you can follow steps : 1. Download groovy jar file:2. Download mongo java jar file:3. Jmx connection: use below codeimport com.mongodb.*import com.mongodb.client.MongoClients;import com.mongodb.client.MongoClient;import com.mongodb.MongoClientSettings;import com.mongodb.ServerAddress;import com.mongodb.client.MongoCollection;import com.mongodb.client.MongoDatabase;import org.bson.Document;import java.util.Arrays;try {MongoClientSettings settings = MongoClientSettings.builder().applyToClusterSettings {builder -> builder.hosts(Arrays.asList(new ServerAddress(vars.get("mongoHost"),vars.get("mongoPort").toInteger())))}.build();MongoClient mongoClient = MongoClients.create(settings);MongoDatabase database = mongoClient.getDatabase(vars.get("databaseName"));MongoCollection collection = database.getCollection(vars.get("collectionName"));vars.putObject("collection", collection);return "Connected to " + vars.get("collectionName");}catch (Exception e) {SampleResult.setSuccessful(false);SampleResult.setResponseCode("500");SampleResult.setResponseMessage("Exception: " + e);}Note : Above config maybe bit complex , I will come up with my next videos on all DB's widely used
@@softwaretestwarriors1925 thanks
Much needed to Mysql
This video helped me.
Hello
Really Helpful, looking forward to more videos like this for performance and API testing.
Good job Mr. Software test warriors , Thannks for a hardwork for us
It's my pleasure
This is very informative video which helped.
Nice information.
Good for QA beginners
Can you share same videos for SQL server & posgress ...it will be really helpfull
Sure will post in few days
Awesome video ,it helped in database performance testing.
Glad to hear that
Hi, how to connect with mongodb.
Hi pratheep for mongo DB connection you can follow steps :
1. Download groovy jar file:
2. Download mongo java jar file:
3. Jmx connection: use below code
import com.mongodb.*
import com.mongodb.client.MongoClients;
import com.mongodb.client.MongoClient;
import com.mongodb.MongoClientSettings;
import com.mongodb.ServerAddress;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
import java.util.Arrays;
try {
MongoClientSettings settings = MongoClientSettings.builder()
.applyToClusterSettings {builder ->
builder.hosts(Arrays.asList(new ServerAddress(vars.get("mongoHost"),vars.get("mongoPort").toInteger())))}
.build();
MongoClient mongoClient = MongoClients.create(settings);
MongoDatabase database = mongoClient.getDatabase(vars.get("databaseName"));
MongoCollection collection = database.getCollection(vars.get("collectionName"));
vars.putObject("collection", collection);
return "Connected to " + vars.get("collectionName");
}
catch (Exception e) {
SampleResult.setSuccessful(false);
SampleResult.setResponseCode("500");
SampleResult.setResponseMessage("Exception: " + e);
}
Note : Above config maybe bit complex , I will come up with my next videos on all DB's widely used
@@softwaretestwarriors1925 thanks
Much needed to Mysql
This video helped me.
Hello