背景:当我们同一条用例需要传入不同的参数进行测试时,我们可以每组数据写一个用例,但是这样代码冗余太多。 所以我们可以想着:同一个用例传入不同的参数。 例如:当我们测试用户登录,我们测试场景1:用户A,密码正确; 场景2:用户B,密码不正确 我们只是编写一个登录测试用例,而传入的参数是两组不同的数据。 ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 15:07:53   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    c语言中指针作为参数的函数同时计算两个数的和与差。 1、 #include <stdio.h> void sum_dif(int n1, int n2, int *sum, int *dif) { *sum = n1 + n2; *dif = (n1 > n2) ? (n1 - n2) : (n2  ...
                            
                            
                                分类:
编程语言   时间:
2021-06-02 15:05:19   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    安卓11有权限要求,以下方法管用 //跳转到相机 private void showCamera() { File fileDir = new File(Environment.getExternalStorageDirectory(),"Pictures"); if (!fileDir.exist ...
                            
                            
                                分类:
移动开发   时间:
2021-06-02 14:56:05   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    //普通for循环 void test(){ int arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); ++i){ cout << arr[i] << " "; } cou ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 14:53:43   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                自动化开发部署和测试 在之前章节中有一个IsValid方法,检查银行账号是是否符合校验码要求,由于这种方法很容易出现代码错误,都会写一个短小的程序来测试验证此方法。 class Program { [STAThread] static void Main(string[] args) { strin ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 14:49:27   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                public void OnGet(int pageNo= 1,int pageSize=5) { var input = new PagedAndSortedResultRequestDto { MaxResultCount = pageSize, SkipCount = (pageNo - 1) ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 14:40:05   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    class Main { public static void main(String[] args) { b bb = new b(); } } class a{ // a(){ 注释我会报错 // System.out.println("a"); // } a(int a){ System.ou ...
                            
                            
                                分类:
编程语言   时间:
2021-06-02 13:54:11   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    时间复杂度:O(N2) 空间复杂度:O(1) 稳定性:稳定 // 冒泡排序 void bubble_sort(int list[], int listSize) { int i, j, flag; int temp; for (i = listSize - 1; i >= 1; --i) { fla ...
                            
                            
                                分类:
编程语言   时间:
2021-06-02 13:42:30   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    题目链接 #题目大意 求n个数的子序列的最大异或和。 #解题思路 求出n个数的线性基并排序,然后将k二进制异或上线性基中对应的代表元素即可。 #代码 const int maxn = 2e5+10; ll arr[maxn]; vector<ll> b; //b中存的每个二进制位的代表元素 void ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 13:29:58   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                dui界面基于 https://github.com/dingyuanhong/dui_ffplay/ extern "C" { #include "common.h" //ff相关 } #include <Windows.h> #include "../DuiLib/UIlib.h" using  ...