-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignupPostBase.java
52 lines (42 loc) · 1.53 KB
/
SignupPostBase.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package API;
import java.util.Random;
public class SignupPostBase {
public static String Base_URI()
{
return "https://sandbox.cialfo.sg";
}
public static String Register_Api()
{
return "access_student_create";
}
public static String Registeruser()
{
String fname = "rabika";
String lname = "iqbal";
Random random = new Random();
int randomNumber = random.nextInt(1000);
String pwd = "12345678";
String domain = "cialfo.com.sg";
String randomemail = fname.toLowerCase() + "." + lname.toLowerCase() + "+" + randomNumber + "@" + domain;
return "{\n"
+ " \"user\":{\n"
+ " \"password\":\"" + pwd +"\",\"has_accepted_conditions\":true,\"first_name\":\"" + fname +"\",\"last_name\":\"" + lname + "\",\"email\":\"" + randomemail +",\"gender\":\"F\",\"gender_preference\":null,\"mobile\":null,\"mobile_country_code\":null,\"onboarded\":true,\n"
+ " \"device_info\": {\n"
+ " \"platform\": \"web\"\n"
+ " }\n"
+ " }\n"
+ "}\n"
+ "";
}
public static String SameEmail()
{
return "{\n"
+ " \"user\":{\n"
+ " \"password\":\"12345678\",\"has_accepted_conditions\":true,\"first_name\":\"da\",\"last_name\":\"daa\",\"email\":\"[email protected]\",\"gender\":\"F\",\"gender_preference\":null,\"mobile\":null,\"mobile_country_code\":null,\"onboarded\":true,\n"
+ " \"device_info\": {\n"
+ " \"platform\": \"web\" }\n"
+ " }\n"
+ "}\n"
+ "";
}
}